- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 14 Sep 2009 07:03:09 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv32596
Modified Files:
Overview.html
Log Message:
Bring document.close() in XML in line with the other API methods from this set, and in line with gecko/webkit (whatwg r3836)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3003
retrieving revision 1.3004
diff -u -d -r1.3003 -r1.3004
--- Overview.html 14 Sep 2009 06:57:25 -0000 1.3003
+++ Overview.html 14 Sep 2009 07:03:05 -0000 1.3004
@@ -8524,16 +8524,28 @@
<p>Closes the input stream that was opened by the <code title="dom-document-open"><a href="#dom-document-open">document.open()</a></code> method.</p>
+ <p>Throws an <code><a href="#invalid_state_err">INVALID_STATE_ERR</a></code> exception if the
+ <code>Document</code> is an <a href="#xml-documents" title="XML documents">XML
+ document</a>.</p>
+
</dd>
</dl><div class="impl">
+
+ <li>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>
+
<p>The <dfn id="dom-document-close" title="dom-document-close"><code>close()</code></dfn>
- method must do nothing if there is no <a href="#script-created-parser">script-created
- parser</a> associated with the document. If there is such a
- parser, 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>.</p>
+ 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>
</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>
Received on Monday, 14 September 2009 07:03:18 UTC