0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-27 22:19:04 -05:00

fix(types): Add name attribute to AnchorHTMLAttributes (#10981)

* fix(types): Add name attribute to AnchorHTMLAttributes

* Create tiny-toys-exist.md

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
This commit is contained in:
molsson 2024-05-14 10:52:38 +02:00 committed by GitHub
parent 2e2d6b7442
commit ad9227c7d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View file

@ -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.

View file

@ -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;