Skip to content

Commit

Permalink
fix(types): Add name attribute to AnchorHTMLAttributes (#10981)
Browse files Browse the repository at this point in the history
* fix(types): Add name attribute to AnchorHTMLAttributes

* Create tiny-toys-exist.md

---------

Co-authored-by: Erika <[email protected]>
  • Loading branch information
mo and Princesseuh committed May 14, 2024
1 parent 2e2d6b7 commit ad9227c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tiny-toys-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"astro": patch
---

Adds deprecated HTML attribute "name" to the list of valid attributes. This attribute has been replaced by the global `id` attribute in recent versions of HTML.
1 change: 1 addition & 0 deletions packages/astro/astro-jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@ declare namespace astroHTML.JSX {
href?: string | URL | undefined | null;
hreflang?: string | undefined | null;
media?: string | undefined | null;
name?: string | undefined | null;
ping?: string | undefined | null;
rel?: string | undefined | null;
target?: HTMLAttributeAnchorTarget | undefined | null;
Expand Down

0 comments on commit ad9227c

Please sign in to comment.