W3C home > Mailing lists > Public > public-html-commits@w3.org > October 2009

html5/spec Overview.html,1.3386,1.3387

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 21 Oct 2009 08:18:26 +0000
To: public-html-commits@w3.org
Message-Id: <E1N0WOo-0001mO-Ur@lionel-hutz.w3.org>
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv6822

Modified Files:
	Overview.html 
Log Message:
Make document.close() more evil. (whatwg r4241)

Index: Overview.html
===================================================================
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:18:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 21 October 2009 08:18:31 GMT