-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Document open steps and quirks mode #3831
Comments
It seems like the clearest path forward is to align with three out of four browsers and set to no-quirks. |
Yeah, the main weird thing is that this means it can change dynamically. I think we should add another test that stresses that somehow, by looking at CSS rendering of a DOM-inserted element as well rather than just @bzbarsky @hsivonen can you see any problems about changing this in Firefox? (Other than perhaps not wanting to piecemeal align |
Hmm, can't it already change dynamically due to |
So the point is that when you I guess what Gecko does is that we leave whatever the mode was when If that's the situation, then aligning with the other browsers on what happens when |
@bzbarsky You are right in that I should check if it's limited-quirks or no-quirks. From source code inspection WebKit/Blink does no-quirks, but I'm not sure about Edge currently. Could you point to some literature that shows how they differ?
Precisely. |
I think the only difference is the handling of this testcase:
which has a red bar under the black rectangle in no-quirks mode but not in quirks or limited-quirks. |
Though there might be something weird about |
@bzbarsky Found https://quirks.spec.whatwg.org/ and corresponding tests… Thanks! Tests (web-platform-tests/wpt#10679) have been updated to account for limited-quirks. Chrome and Safari always use no-quirks. Haven't been able to check Edge, but from talking to their engineers I'm convinced that they also use no-quirks. |
Per investigation in whatwg#3818, this change aligns the behavior of document.open() with Chrome and Safari. Tests: web-platform-tests/wpt#10679. Closes whatwg#3831.
Per investigation in whatwg#3818, this change aligns the behavior of document.open() with Chrome and Safari. Tests: web-platform-tests/wpt#10679. Closes whatwg#3831.
Currently, Chrome, Edge, and Safari all set the mode of the current document that's being processed through document open steps to no-quirks mode. Firefox does not, however.
The current call to set mode to no-quirks in WebKit was from https://bugs.webkit.org/show_bug.cgi?id=44788, but it's possible that the behavior has been there since even before that patch. I cannot find a corresponding call in the HTML Standard from that era.
Tests I used to confirm this: https://github.com/TimothyGu/document-open-tests (the ones starting with
step-undef-no-quirk
)WPT (still being worked on): web-platform-tests/wpt#10679
The text was updated successfully, but these errors were encountered: