[html5] r4241 - [giow] (2) Make document.close() more evil. Fixing http://www.w3.org/Bugs/Public [...]
whatwg at whatwg.org
whatwg at whatwg.org
Wed Oct 21 01:31:11 PDT 2009
Author: ianh
Date: 2009-10-21 01:31:06 -0700 (Wed, 21 Oct 2009)
New Revision: 4241
Modified:
complete.html
index
source
Log:
[giow] (2) Make document.close() more evil.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=7917
Modified: complete.html
===================================================================
--- complete.html 2009-10-21 08:21:27 UTC (rev 4240)
+++ complete.html 2009-10-21 08:31:06 UTC (rev 4241)
@@ -9923,19 +9923,31 @@
</dl><div class=impl>
<p>The <dfn id=dom-document-close title=dom-document-close><code>close()</code></dfn>
- method must throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception if the
- <code>Document</code> object is not flagged as an <a href=#html-documents title="HTML
- documents">HTML document</a>. Otherwise, if there is a
- <a href=#script-created-parser>script-created parser</a> associated with the document,
- then, when the method is called, the user agent must insert an
- <a href=#explicit-eof-character>explicit "EOF" character</a> at the end of the parser's
- <a href=#the-input-stream>input stream</a>. Otherwise, the method must do
- nothing.</p>
+ method must run the following steps:</p>
- </div>
+ <ol><li><p>If the <code>Document</code> object is not flagged as an
+ <a href=#html-documents title="HTML documents">HTML document</a>, throw an
+ <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception and abort these
+ steps.</li>
+ <li><p>If there is no <a href=#script-created-parser>script-created parser</a> associated
+ with the document, then abort these steps.</li>
+ <li><p>Insert an <a href=#explicit-eof-character>explicit "EOF" character</a> at the end
+ of the parser's <a href=#the-input-stream>input stream</a>.</li>
+ <li><p>If there is a <a href=#pending-parsing-blocking-script>pending parsing-blocking script</a>,
+ then abort these steps.</li>
+
+ <li><p>Run the tokenizer, processing resulting tokens as they are
+ emitted, and stopping when the tokenizer reaches the <a href=#explicit-eof-character>explicit
+ "EOF" character</a> or <a href=#spin-the-event-loop title="spin the event loop">spins
+ the event loop</a>.</li>
+
+ </ol></div>
+
+
+
<h4 id=document.write()><span class=secno>3.5.3 </span><code title=dom-document-write><a href=#dom-document-write>document.write()</a></code></h4>
<dl class=domintro><dt><var title="">document</var> . <code title=dom-document-write><a href=#dom-document-write>write</a></code>(<var title="">text</var>...)</dt>
Modified: index
===================================================================
--- index 2009-10-21 08:21:27 UTC (rev 4240)
+++ index 2009-10-21 08:31:06 UTC (rev 4241)
@@ -9753,19 +9753,31 @@
</dl><div class=impl>
<p>The <dfn id=dom-document-close title=dom-document-close><code>close()</code></dfn>
- method must throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception if the
- <code>Document</code> object is not flagged as an <a href=#html-documents title="HTML
- documents">HTML document</a>. Otherwise, if there is a
- <a href=#script-created-parser>script-created parser</a> associated with the document,
- then, when the method is called, the user agent must insert an
- <a href=#explicit-eof-character>explicit "EOF" character</a> at the end of the parser's
- <a href=#the-input-stream>input stream</a>. Otherwise, the method must do
- nothing.</p>
+ method must run the following steps:</p>
- </div>
+ <ol><li><p>If the <code>Document</code> object is not flagged as an
+ <a href=#html-documents title="HTML documents">HTML document</a>, throw an
+ <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception and abort these
+ steps.</li>
+ <li><p>If there is no <a href=#script-created-parser>script-created parser</a> associated
+ with the document, then abort these steps.</li>
+ <li><p>Insert an <a href=#explicit-eof-character>explicit "EOF" character</a> at the end
+ of the parser's <a href=#the-input-stream>input stream</a>.</li>
+ <li><p>If there is a <a href=#pending-parsing-blocking-script>pending parsing-blocking script</a>,
+ then abort these steps.</li>
+
+ <li><p>Run the tokenizer, processing resulting tokens as they are
+ emitted, and stopping when the tokenizer reaches the <a href=#explicit-eof-character>explicit
+ "EOF" character</a> or <a href=#spin-the-event-loop title="spin the event loop">spins
+ the event loop</a>.</li>
+
+ </ol></div>
+
+
+
<h4 id=document.write()><span class=secno>3.5.3 </span><code title=dom-document-write><a href=#dom-document-write>document.write()</a></code></h4>
<dl class=domintro><dt><var title="">document</var> . <code title=dom-document-write><a href=#dom-document-write>write</a></code>(<var title="">text</var>...)</dt>
Modified: source
===================================================================
--- source 2009-10-21 08:21:27 UTC (rev 4240)
+++ source 2009-10-21 08:31:06 UTC (rev 4241)
@@ -10120,15 +10120,31 @@
<div class="impl">
<p>The <dfn title="dom-document-close"><code>close()</code></dfn>
- method must throw an <code>INVALID_STATE_ERR</code> exception if the
- <code>Document</code> object is not flagged as an <span title="HTML
- documents">HTML document</span>. Otherwise, if there is a
- <span>script-created parser</span> associated with the document,
- then, when the method is called, the user agent must insert an
- <span>explicit "EOF" character</span> at the end of the parser's
- <span>input stream</span>. Otherwise, the method must do
- nothing.</p>
+ method must run the following steps:</p>
+ <ol>
+
+ <li><p>If the <code>Document</code> object is not flagged as an
+ <span title="HTML documents">HTML document</span>, throw an
+ <code>INVALID_STATE_ERR</code> exception and abort these
+ steps.</p></li>
+
+ <li><p>If there is no <span>script-created parser</span> associated
+ with the document, then abort these steps.</p></li>
+
+ <li><p>Insert an <span>explicit "EOF" character</span> at the end
+ of the parser's <span>input stream</span>.</p></li>
+
+ <li><p>If there is a <span>pending parsing-blocking script</span>,
+ then abort these steps.</p></li>
+
+ <li><p>Run the tokenizer, processing resulting tokens as they are
+ emitted, and stopping when the tokenizer reaches the <span>explicit
+ "EOF" character</span> or <span title="spin the event loop">spins
+ the event loop</span>.</p></li>
+
+ </ol>
+
</div>
More information about the Commit-Watchers
mailing list