Skip to content
Permalink
Browse files

[giow] (3) Make the parser not execute scripts pending for the docume…

…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 90d9255e6948365708bf55f74ff8f998d5a10fa4
Showing with 36 additions and 2 deletions.
  1. +12 −1 complete.html
  2. +12 −1 index
  3. +12 −0 source

<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>
<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>
13 index

<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>
<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>
12 source
<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>

0 comments on commit 90d9255

Please sign in to comment.
You can’t perform that action at this time.