gjtorikian / html-proofer

Test your rendered HTML files to make sure they're accurate.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Link checker triggered for href=""

ppipelin opened this issue · comments

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

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.