diff --git a/source b/source index 9f6bfcc10b4..34d690fc06b 100644 --- a/source +++ b/source @@ -145333,9 +145333,12 @@ console.assert(container.firstChild instanceof SuperP);
Let document be a Document node whose type is "html".
If context's node document is
- in quirks mode, then set document's mode to "quirks".
Let contextDocument be context's + node document.
If contextDocument is in quirks mode, then set
+ document's mode to "quirks".
Otherwise, if context's node
document is in limited-quirks mode, then set document's Create a new HTML parser, and associate it with document.
If document's scripting is enabled, then set the parser's - scripting mode to scriptingMode.
+If contextDocument's scripting is + disabled, then set scriptingMode to disabled.
This appears broken, as the document created for fragment parsing does not have a
- browsing context, which would make it parse noscript as if scripting was disabled.
- See issue #12254.
Set the parser's scripting mode to scriptingMode.
Set the state of the HTML parser's tokenization stage as