-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Ignore leading whitespace when checking for HTML doctype #10855
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
I'm not sure about the CI failures. They're getting |
Hmm, I read the HTML5 spec and it seems we are still missing a lot of logic. This PR stands on its own so we should still merge it (unless you want to tackle them in this PR), but hopefully someone can come in and fix those other issues. |
Yes, seems tests are broken on Ubuntu at the moment, I am getting the same error for something completely unrelated: https://github.com/pypa/pip/runs/5010487348?check_suite_focus=true |
I see @domdfcoding has filed pypa/setuptools#3063 already! :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I'm willing to take a look at this (I was intending to, in fact) but my time till the end of February is somewhat limited, so if someone else wants to get to it first that's fine. |
In #10868, I'm proposing we drop this fallback I added in the spirit of expidiecy yesterday -- I think there's a much better behaviour here that I didn't think of in the heat of the moment yesterday. |
Ref #10825 (comment)