- From: poot <cvsmail@w3.org>
- Date: Wed, 21 Oct 2009 17:18:36 +0900 (JST)
- To: public-html-diffs@w3.org
hixie: Make document.close() more evil. (whatwg r4241) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3386&r2=1.3387&f=h http://html5.org/tools/web-apps-tracker?from=4240&to=4241 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.3386 retrieving revision 1.3387 diff -u -d -r1.3386 -r1.3387 --- Overview.html 21 Oct 2009 08:08:45 -0000 1.3386 +++ Overview.html 21 Oct 2009 08:18:23 -0000 1.3387 @@ -8697,16 +8697,28 @@ </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><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> + <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> <dd>
Received on Wednesday, 21 October 2009 08:19:07 UTC