-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
Add option for empty href #468
Comments
Could you please describe a few use-cases where is it needed? |
I had generated html and the href was generated using a variable that was empty. Also, forget to add href to an url ? |
Correct me if I am wrong, but isn't it default now? I expected that if I write something like: |
In the upcoming 4.x release |
For added context: HTML5 spec actually allows for missing hrefs, but I feel like more often than not this omission would be human error. So we go against the spec by default, but you can pass the flag in if you really want to allow missing hrefs. |
I would be nice to have and option similar to
allow_hash_href
but to disallow empty hrefs.The text was updated successfully, but these errors were encountered: