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

Link checker triggered for href="" #746

Closed
ppipelin opened this issue Jul 30, 2022 · 1 comment
Closed

Link checker triggered for href="" #746

ppipelin opened this issue Jul 30, 2022 · 1 comment

Comments

@ppipelin
Copy link

Hello,
I think this may be a unwanted behaviour: the link checker triggers the error 'a' tag is missing a reference even for for tags that have href="" (going back to root)?
Thanks

@gjtorikian
Copy link
Owner

By default, this is the case. As the docs say:

In HTML5, this is technically allowed, but could also be human error.

That is to say, it's more "dangerous" for someone to forget to put an href attribute, rather than allow blank references to go through. By default, html-proofer will raise this as an error, but you can disable it by passing allow_missing_href = true in the configuration.

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

No branches or pull requests

2 participants