Bugzilla – Bug 614
Define how to tell if the parser is being called re-entrantly more precisely.
Last modified: 2009-11-23 17:17:33 CET
Index: source =================================================================== --- source (revision 3346) +++ source (revision 3347) @@ -77674,16 +77674,21 @@ <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>