From 0c4cb34391ab53f5b5ef9e2959bf1dd089957875 Mon Sep 17 00:00:00 2001
From: Simon Pieters
Speculatively parse the remainder of the document.write string here?
+The tree construction stage of this particular parser is being called reentrantly, say from a call to document.write()
.
Let the script be the pending parsing-blocking script. There is no longer a pending parsing-blocking script.
Start the speculative HTML parser for this instance of the HTML + parser.
Block the tokenizer for this instance of the HTML parser, such that the event loop will not run tasks that invoke the Document.
Stop the speculative HTML parser for this instance of the HTML + parser.
Unblock the tokenizer for this instance of the HTML parser, such that tasks that invoke the tokenizer can again be run.
Speculative HTML parser, start the speculative HTML parser, + stop the speculative HTML parser...
+ +Throw away any pending content in the input stream, and discard any future content that would have been added to it.
If there is an active speculative HTML parser, stop the speculative + HTML parser for this HTML parser.
Set the current document readiness to "interactive
".