Skip to content

Commit

Permalink
[cgt] (2) Define how to tell if the parser is being called re-entrant…
Browse files Browse the repository at this point in the history
…ly more precisely.

git-svn-id: http://svn.whatwg.org/webapps@3347 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 1, 2009
1 parent a0e42a9 commit 9105b4b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 18 deletions.
22 changes: 14 additions & 8 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -63535,14 +63535,20 @@ document.body.appendChild(text);
<p id=scriptTagParserResumes>At this stage, if there is a
<a href=#pending-external-script>pending external script</a>, then:</p>

<dl class=switch><dt>If the tree construction stage is <a href=#nestedParsing>being called reentrantly</a>, say from a
call to <code title=dom-document-write><a href=#dom-document-write>document.write()</a></code>:</dt>

<dd><p>Set the <a href=#parser-pause-flag>parser pause flag</a> to true, and abort
the processing of any nested invocations of the tokenizer,
yielding control back to the caller. (Tokenization will resume
when the caller returns to the "outer" tree construction
stage.)</dd>
<dl class=switch><dt>If the <a href=#script-nesting-level>script nesting level</a> is not zero:</dt>

<dd>

<p>Set the <a href=#parser-pause-flag>parser pause flag</a> to true, and abort the
processing of any nested invocations of the tokenizer, yielding
control back to the caller. (Tokenization will resume when the
caller returns to the "outer" tree construction stage.)</p>

<p class=note>The tree construction stage of this particular
parser is <a href=#nestedParsing>being called reentrantly</a>,
say from a call to <code title=dom-document-write><a href=#dom-document-write>document.write()</a></code>.</p>

</dd>


<dt>Otherwise:</dt>
Expand Down
25 changes: 15 additions & 10 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -77674,16 +77674,21 @@ document.body.appendChild(text);

<dl class="switch">

<dt>If the tree construction stage is <a
href="#nestedParsing">being called reentrantly</a>, say from a
call to <code
title="dom-document-write">document.write()</code>:</dt>

<dd><p>Set the <span>parser pause flag</span> to true, and abort
the processing of any nested invocations of the tokenizer,
yielding control back to the caller. (Tokenization will resume
when the caller returns to the "outer" tree construction
stage.)</p></dd>
<dt>If the <span>script nesting level</span> is not zero:</dt>

<dd>

<p>Set the <span>parser pause flag</span> to true, and abort the
processing of any nested invocations of the tokenizer, yielding
control back to the caller. (Tokenization will resume when the
caller returns to the "outer" tree construction stage.)</p>

<p class="note">The tree construction stage of this particular
parser is <a href="#nestedParsing">being called reentrantly</a>,
say from a call to <code
title="dom-document-write">document.write()</code>.</p>

</dd>


<dt>Otherwise:</dt>
Expand Down

0 comments on commit 9105b4b

Please sign in to comment.