Skip to content

Commit

Permalink
[giow] (3) Make the parser not execute scripts pending for the docume…
Browse files Browse the repository at this point in the history
…nt after document.open() has been called on it.

Affected topics: HTML Syntax and Parsing

git-svn-id: http://svn.whatwg.org/webapps@8201 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 1, 2013
1 parent a7a3d17 commit 90d9255
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
13 changes: 12 additions & 1 deletion complete.html
Expand Up @@ -256,7 +256,7 @@

<header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 27 September 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 1 October 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -91738,6 +91738,17 @@ <h6 id=parsing-main-incdata><span class=secno>12.2.5.4.8 </span>The "<dfn title=
<a href=#has-no-style-sheet-that-is-blocking-scripts>has no style sheet that is blocking scripts</a> and <var title="">the script</var>'s
<a href=#ready-to-be-parser-executed>"ready to be parser-executed"</a> flag is set.</li>

<li>

<p>If this <a href=#abort-a-parser title="abort a parser">parser has been aborted</a> in the meantime,
abort these steps.</p>

<p class=note>This could happen if, e.g., while the <a href=#spin-the-event-loop>spin the event loop</a>
algorithm is running, the <a href=#browsing-context>browsing context</a> gets closed, or the <code title=dom-document-open><a href=#dom-document-open>document.open()</a></code> method gets invoked on the
<code>Documnet</code>.</p>

</li>

<li><p>Unblock the <a href=#tokenization title=tokenization>tokenizer</a> for this instance of the
<a href=#html-parser>HTML parser</a>, such that <a href=#concept-task title=concept-task>tasks</a> that invoke the
<a href=#tokenization title=tokenization>tokenizer</a> can again be run.</li>
Expand Down
13 changes: 12 additions & 1 deletion index
Expand Up @@ -256,7 +256,7 @@

<header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 27 September 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 1 October 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -91738,6 +91738,17 @@ document.body.appendChild(text);
<a href=#has-no-style-sheet-that-is-blocking-scripts>has no style sheet that is blocking scripts</a> and <var title="">the script</var>'s
<a href=#ready-to-be-parser-executed>"ready to be parser-executed"</a> flag is set.</li>

<li>

<p>If this <a href=#abort-a-parser title="abort a parser">parser has been aborted</a> in the meantime,
abort these steps.</p>

<p class=note>This could happen if, e.g., while the <a href=#spin-the-event-loop>spin the event loop</a>
algorithm is running, the <a href=#browsing-context>browsing context</a> gets closed, or the <code title=dom-document-open><a href=#dom-document-open>document.open()</a></code> method gets invoked on the
<code>Documnet</code>.</p>

</li>

<li><p>Unblock the <a href=#tokenization title=tokenization>tokenizer</a> for this instance of the
<a href=#html-parser>HTML parser</a>, such that <a href=#concept-task title=concept-task>tasks</a> that invoke the
<a href=#tokenization title=tokenization>tokenizer</a> can again be run.</li>
Expand Down
12 changes: 12 additions & 0 deletions source
Expand Up @@ -102473,6 +102473,18 @@ document.body.appendChild(text);
<span>has no style sheet that is blocking scripts</span> and <var title="">the script</var>'s
<span>"ready to be parser-executed"</span> flag is set.</p></li>

<li>

<p>If this <span title="abort a parser">parser has been aborted</span> in the meantime,
abort these steps.</p>

<p class="note">This could happen if, e.g., while the <span>spin the event loop</span>
algorithm is running, the <span>browsing context</span> gets closed, or the <code
title="dom-document-open">document.open()</code> method gets invoked on the
<code>Documnet</code>.</p>

</li>

<li><p>Unblock the <span title="tokenization">tokenizer</span> for this instance of the
<span>HTML parser</span>, such that <span title="concept-task">tasks</span> that invoke the
<span title="tokenization">tokenizer</span> can again be run.</p></li>
Expand Down

0 comments on commit 90d9255

Please sign in to comment.