Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -145333,9 +145333,12 @@ console.assert(container.firstChild instanceof SuperP);
<li><p>Let <var>document</var> be a <code>Document</code> node whose <span
data-x="concept-document-type">type</span> is "<code data-x="">html</code>".</p></li>

<li><p>If <var data-x="concept-frag-parse-context">context</var>'s <span>node document</span> is
in <span>quirks mode</span>, then set <var>document</var>'s <span
data-x="concept-document-mode">mode</span> to "<code data-x="">quirks</code>".</p></li>
<li><p>Let <var>contextDocument</var> be <var data-x="concept-frag-parse-context">context</var>'s
<span>node document</span>.</p></li>

<li><p>If <var>contextDocument</var> is in <span>quirks mode</span>, then set
<var>document</var>'s <span data-x="concept-document-mode">mode</span> to "<code
data-x="">quirks</code>".</p></li>

<li><p>Otherwise, if <var data-x="concept-frag-parse-context">context</var>'s <span>node
document</span> is in <span>limited-quirks mode</span>, then set <var>document</var>'s <span
Expand All @@ -145347,15 +145350,11 @@ console.assert(container.firstChild instanceof SuperP);

<li><p>Create a new <span>HTML parser</span>, and associate it with <var>document</var>.</p></li>

<li>
<p>If <var>document</var>'s <span
data-x="concept-n-script">scripting is enabled</span>, then set the parser's
<span>scripting mode</span> to <var>scriptingMode</var>.</p>
<li><p>If <var>contextDocument</var>'s <span data-x="concept-n-script">scripting is
disabled</span>, then set <var>scriptingMode</var> to <span
data-x="scripting-mode-disabled">disabled</span>.</p></li>

<p class="XXX">This appears broken, as the document created for fragment parsing does not have a
browsing context, which would make it parse <code>noscript</code> as if scripting was disabled.
See <a href="https://github.com/whatwg/html/issues/12254">issue #12254</a>.</p>
</li>
<li><p>Set the parser's <span>scripting mode</span> to <var>scriptingMode</var>.</p></li>

<li>
<p>Set the state of the <span>HTML parser</span>'s <span>tokenization</span> stage as
Expand Down
Loading