Skip to content

Conversation

@leedxw
Copy link
Contributor

@leedxw leedxw commented Jul 7, 2025

In html5 the <a> element doesn't have the "name" attribute, but "class" and "id" can be applied anywhere.

So instead of empty <a> elements, apply an id to the surrounding <div>

https://html.spec.whatwg.org/multipage/browsing-the-web.html#scroll-to-fragid

@leedxw leedxw force-pushed the fix/a_anchor_id branch 2 times, most recently from fa3d699 to 8b25973 Compare July 7, 2025 09:50
In html5 the <a> element doesn't have the "name" attribute, but
"class" and "id" can be applied anywhere.

So instead of empty <a> elements, apply an id to the surrounding <div>

https://html.spec.whatwg.org/multipage/browsing-the-web.html#scroll-to-fragid
@leedxw leedxw marked this pull request as ready for review September 18, 2025 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants