Skip to content

Commit

Permalink
Make document.open() set the document to no-quirks
Browse files Browse the repository at this point in the history
Per investigation in #3818, this change aligns the behavior of
document.open() with Chrome and Safari.

Tests: web-platform-tests/wpt#10679.

Closes #3831.
  • Loading branch information
TimothyGu authored and annevk committed Aug 28, 2018
1 parent 3d9b41d commit 7d21798
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -90994,6 +90994,8 @@ document.body.appendChild(frame)</code></pre>
<li><p>If <var>document</var>'s <span>iframe load in progress</span> flag is set, then set
<var>document</var>'s <span>mute iframe load</span> flag.</p></li>

<li><p>Set <var>document</var> to <span>no-quirks mode</span>.</p></li>

<li><p>Create a new <span>HTML parser</span> and associate it with <var>document</var>. This is a
<dfn>script-created parser</dfn> (meaning that it can be closed by the <code
data-x="dom-document-open">document.open()</code> and <code
Expand Down

0 comments on commit 7d21798

Please sign in to comment.