-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Doctype check misses some quirky doctypes #10030
Comments
I'm interested in this for correctness-sake, and I want to learn more, but I think this is likely a low-impact change. |
Hey! I read about it and I tried the lighthouse test on the above example and it passed the audit for |
Hey! I was just checking my PR and found there were a lot of problems with it. So this time I ran tests and fixed everything. I hope this one works out. |
#5274 introduced a check for the doctype.
https://doctype-html-foo.glitch.me/ is a test page that uses
<!DOCTYPE html foo>
, which triggers quirks mode but passes the Lighthouse check.While that exact doctype is maybe unlikely to happen, there are other variants that are more likely, such as
<!DOCTYPE html />
or<!DOCTYPE html PUBILC "-//W3C//DTD HTML 4.01//EN">
(note the typo) or<!DOCTYPE html PUBLIC ”-//W3C//DTD HTML 4.01//EN”>
(smart quotes).Provide the steps to reproduce
What is the current behavior?
"Page has the HTML doctype" passes.
What is the expected behavior?
"Page has the HTML doctype" should fail when
document.compatMode
isBackCompat
.Environment Information
Related issues
The text was updated successfully, but these errors were encountered: