Skip to content

Commit

Permalink
[gow] (2) Bring document.close() in XML in line with the other API me…
Browse files Browse the repository at this point in the history
…thods from this set, and in line with gecko/webkit

git-svn-id: http://svn.whatwg.org/webapps@3836 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 14, 2009
1 parent cb45e62 commit 0f4fc1b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 10 deletions.
22 changes: 17 additions & 5 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -9579,16 +9579,28 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0

<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>

Expand Down
23 changes: 18 additions & 5 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -9923,18 +9923,31 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
<p>Closes the input stream that was opened by the <code
title="dom-document-open">document.open()</code> method.</p>

<p>Throws an <code>INVALID_STATE_ERR</code> exception if the
<code>Document</code> is an <span title="XML documents">XML
document</span>.</p>

</dd>

</dl>

<div class="impl">


<li>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.</li>

<p>The <dfn title="dom-document-close"><code>close()</code></dfn>
method must do nothing if there is no <span>script-created
parser</span> associated with the document. If there is such a
parser, 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>.</p>
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>

</div>

Expand Down

0 comments on commit 0f4fc1b

Please sign in to comment.