Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anchor links to name="" throwing errors #86

Closed
justincavery opened this issue Jan 27, 2014 · 1 comment
Closed

Anchor links to name="" throwing errors #86

justincavery opened this issue Jan 27, 2014 · 1 comment

Comments

@justincavery
Copy link

When a link is to an anchor it will throw an error if that anchor isn't declared as an id. This should pass if the anchor is declared within the name attribute also.

The code below is valid but is throwing an Error because top isn't declared as an id.

<h1 name="top">Heading</h1>
<a href="#top">back to top</a>
@luketw
Copy link
Member

luketw commented Apr 28, 2016

I'm coming back to this one and marking this as a HTML5 issue. In HTML5 "name" on a header is not permitted, but is not a problem in HTML 4, so this would need a document type switch to properly fix.

ironikart added a commit that referenced this issue Aug 26, 2016
…ill validate whether the element with name="<anchor>" exists and throw an error if not.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants