-
-
Notifications
You must be signed in to change notification settings - Fork 237
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
Fix document type detection (limited-quirks mode) #305
Conversation
@squidfunk Good catch, thanks! Though, seems like linting in CI is unhappy with line endings. |
Fixed, sorry for that. |
BTW, I don't know if the spec changed since you implemented quirks-mode detection, but I think the prefixes are not entirely correct as they specify |
@squidfunk Thanks for yet another great catch. I've just looked through the spec commit history and it seems like it always was this way and it's a mistake on my side. I'm surprised it wasn't captured by html5lib-tests. May I ask you to fix that in context of this PR as well and open a ticket in https://github.com/html5lib/html5lib-tests to add test cases for that? |
Will do. |
I could combine some of the prefixes and add two missing - should now be spec-compliant. |
It would be really awesome if you could issue a bugfix release, as my downstream project pretty much depends on this fix :-) |
@squidfunk Great work, thank you!
Will do =) |
@squidfunk Published as v5.1.1 |
Perfect, thanks! Happy to contribute. |
This PR fixes a bug with
DOCTYPE
detection, where the lowercasedpublicId
will never match thelimited-quirks
document types with mixed case.