Skip to content

Conversation

@TimothyGu
Copy link
Member

@TimothyGu TimothyGu commented Aug 27, 2018

Per investigation in #3818, this change aligns the behavior of document.open() with Chrome, Edge, and Safari.

Tests: web-platform-tests/wpt#10679

Per investigation in whatwg#3818, this change aligns the behavior of
document.open() with Chrome and Safari.

Tests: web-platform-tests/wpt#10679
Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I wonder if we should update the DOM spec:

The mode is only ever changed from the default for documents created by the HTML parser based on the presence, absence, or value of the DOCTYPE string, and by a new browsing context (initial "about:blank"). [HTML]

It's unclear whether this falls under "for documents created by the HTML parser" or not...

@TimothyGu
Copy link
Member Author

TimothyGu commented Aug 27, 2018

@domenic The mode wouldn't be "changed from the default" in this PR… if anything it is reverting those changes back to the default.

annevk added a commit to web-platform-tests/wpt that referenced this pull request Aug 28, 2018
@annevk annevk merged commit 7d21798 into whatwg:master Aug 28, 2018
@annevk
Copy link
Member

annevk commented Aug 28, 2018

I haven't filed bugs since I believe the plan is that we file bugs once #3818 is resolved.

@TimothyGu TimothyGu deleted the quirks-mode branch August 28, 2018 12:51
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Sep 3, 2018
…=testonly

Automatic update from web-platform-testsHTML: document.open() and quirks mode

For whatwg/html#3966.
--

wpt-commits: 5c0f55eea08d3f00dc761cff4ef1dbb9864bee29
wpt-pr: 10679
jankeromnes pushed a commit to jankeromnes/gecko that referenced this pull request Sep 3, 2018
…=testonly

Automatic update from web-platform-testsHTML: document.open() and quirks mode

For whatwg/html#3966.
--

wpt-commits: 5c0f55eea08d3f00dc761cff4ef1dbb9864bee29
wpt-pr: 10679
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants