Skip to content

Commit

Permalink
[giow] (2) Make document.write() fire INVALID_STATE_ERR for consisten…
Browse files Browse the repository at this point in the history
…cy with similar APIs, rather than INVALID_ACCESS_ERR. Also, fix some xrefs in IDL blocks.

git-svn-id: http://svn.whatwg.org/webapps@4863 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Mar 24, 2010
1 parent 686856a commit ced1d85
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions complete.html
Expand Up @@ -10194,7 +10194,7 @@ <h4 id=document.write()><span class=secno>3.5.3 </span><code title=dom-document-
stream. If necessary, calls the <code title=dom-document-open><a href=#dom-document-open>open()</a></code> method implicitly
first.</p>

<p>This method throws an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception
<p>This method throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception
when invoked on <a href=#xml-documents>XML documents</a>.</p>

<p>Unless called from the body of a <code><a href=#script>script</a></code> element
Expand All @@ -10213,7 +10213,7 @@ <h4 id=document.write()><span class=secno>3.5.3 </span><code title=dom-document-
<ol><li>

<p>If the method was invoked on an <a href=#xml-documents title="XML documents">XML
document</a>, throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code>
document</a>, throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
exception and abort these steps.</p>

<!--
Expand Down Expand Up @@ -10287,7 +10287,7 @@ <h4 id=document.writeln()><span class=secno>3.5.4 </span><code title=dom-documen
<code title=dom-document-open><a href=#dom-document-open>open()</a></code> method implicitly
first.</p>

<p>This method throws an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception
<p>This method throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception
when invoked on <a href=#xml-documents>XML documents</a>.</p>

</dd>
Expand Down Expand Up @@ -11035,7 +11035,7 @@ <h4 id=the-link-element><span class=secno>4.2.4 </span>The <dfn><code>link</code
attribute boolean <a href=#dom-link-disabled title=dom-link-disabled>disabled</a>;
attribute DOMString <a href=#dom-link-href title=dom-link-href>href</a>;
attribute DOMString <a href=#dom-link-rel title=dom-link-rel>rel</a>;
readonly attribute DOMTokenList <a href=#dom-link-rellist title=dom-link-relList>relList</a>;
readonly attribute <a href=#domtokenlist>DOMTokenList</a> <a href=#dom-link-rellist title=dom-link-relList>relList</a>;
attribute DOMString <a href=#dom-link-media title=dom-link-media>media</a>;
attribute DOMString <a href=#dom-link-hreflang title=dom-link-hreflang>hreflang</a>;
attribute DOMString <a href=#dom-link-type title=dom-link-type>type</a>;
Expand Down Expand Up @@ -16301,7 +16301,7 @@ <h4 id=the-a-element><span class=secno>4.6.1 </span>The <dfn><code>a</code></dfn
attribute DOMString <a href=#dom-a-ping title=dom-a-ping>ping</a>;
<!--PING-->
attribute DOMString <a href=#dom-a-rel title=dom-a-rel>rel</a>;
readonly attribute DOMTokenList <a href=#dom-a-rellist title=dom-a-relList>relList</a>;
readonly attribute <a href=#domtokenlist>DOMTokenList</a> <a href=#dom-a-rellist title=dom-a-relList>relList</a>;
attribute DOMString <a href=#dom-a-media title=dom-a-media>media</a>;
attribute DOMString <a href=#dom-a-hreflang title=dom-a-hreflang>hreflang</a>;
attribute DOMString <a href=#dom-a-type title=dom-a-type>type</a>;
Expand Down Expand Up @@ -28176,7 +28176,7 @@ <h4 id=the-area-element><span class=secno>4.8.12 </span>The <dfn><code>area</cod
attribute DOMString <a href=#dom-area-ping title=dom-area-ping>ping</a>;
<!--PING-->
attribute DOMString <a href=#dom-area-rel title=dom-area-rel>rel</a>;
readonly attribute DOMTokenList <a href=#dom-area-rellist title=dom-area-relList>relList</a>;
readonly attribute <a href=#domtokenlist>DOMTokenList</a> <a href=#dom-area-rellist title=dom-area-relList>relList</a>;
attribute DOMString <a href=#dom-area-media title=dom-area-media>media</a>;
attribute DOMString <a href=#dom-area-hreflang title=dom-area-hreflang>hreflang</a>;
attribute DOMString <a href=#dom-area-type title=dom-area-type>type</a>;
Expand Down
12 changes: 6 additions & 6 deletions index
Expand Up @@ -10093,7 +10093,7 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
stream. If necessary, calls the <code title=dom-document-open><a href=#dom-document-open>open()</a></code> method implicitly
first.</p>

<p>This method throws an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception
<p>This method throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception
when invoked on <a href=#xml-documents>XML documents</a>.</p>

<p>Unless called from the body of a <code><a href=#script>script</a></code> element
Expand All @@ -10112,7 +10112,7 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
<ol><li>

<p>If the method was invoked on an <a href=#xml-documents title="XML documents">XML
document</a>, throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code>
document</a>, throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
exception and abort these steps.</p>

<!--
Expand Down Expand Up @@ -10186,7 +10186,7 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
<code title=dom-document-open><a href=#dom-document-open>open()</a></code> method implicitly
first.</p>

<p>This method throws an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception
<p>This method throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception
when invoked on <a href=#xml-documents>XML documents</a>.</p>

</dd>
Expand Down Expand Up @@ -10934,7 +10934,7 @@ gave me some of the songs they wrote. I love sharing my music.&lt;/p&gt;
attribute boolean <a href=#dom-link-disabled title=dom-link-disabled>disabled</a>;
attribute DOMString <a href=#dom-link-href title=dom-link-href>href</a>;
attribute DOMString <a href=#dom-link-rel title=dom-link-rel>rel</a>;
readonly attribute DOMTokenList <a href=#dom-link-rellist title=dom-link-relList>relList</a>;
readonly attribute <a href=#domtokenlist>DOMTokenList</a> <a href=#dom-link-rellist title=dom-link-relList>relList</a>;
attribute DOMString <a href=#dom-link-media title=dom-link-media>media</a>;
attribute DOMString <a href=#dom-link-hreflang title=dom-link-hreflang>hreflang</a>;
attribute DOMString <a href=#dom-link-type title=dom-link-type>type</a>;
Expand Down Expand Up @@ -16200,7 +16200,7 @@ included with Exhibit B.
attribute DOMString <a href=#dom-a-ping title=dom-a-ping>ping</a>;
<!--PING-->
attribute DOMString <a href=#dom-a-rel title=dom-a-rel>rel</a>;
readonly attribute DOMTokenList <a href=#dom-a-rellist title=dom-a-relList>relList</a>;
readonly attribute <a href=#domtokenlist>DOMTokenList</a> <a href=#dom-a-rellist title=dom-a-relList>relList</a>;
attribute DOMString <a href=#dom-a-media title=dom-a-media>media</a>;
attribute DOMString <a href=#dom-a-hreflang title=dom-a-hreflang>hreflang</a>;
attribute DOMString <a href=#dom-a-type title=dom-a-type>type</a>;
Expand Down Expand Up @@ -28078,7 +28078,7 @@ function AddCloud(data, x, y) { ... }</pre>
attribute DOMString <a href=#dom-area-ping title=dom-area-ping>ping</a>;
<!--PING-->
attribute DOMString <a href=#dom-area-rel title=dom-area-rel>rel</a>;
readonly attribute DOMTokenList <a href=#dom-area-rellist title=dom-area-relList>relList</a>;
readonly attribute <a href=#domtokenlist>DOMTokenList</a> <a href=#dom-area-rellist title=dom-area-relList>relList</a>;
attribute DOMString <a href=#dom-area-media title=dom-area-media>media</a>;
attribute DOMString <a href=#dom-area-hreflang title=dom-area-hreflang>hreflang</a>;
attribute DOMString <a href=#dom-area-type title=dom-area-type>type</a>;
Expand Down
12 changes: 6 additions & 6 deletions source
Expand Up @@ -10439,7 +10439,7 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
title="dom-document-open">open()</code> method implicitly
first.</p>

<p>This method throws an <code>INVALID_ACCESS_ERR</code> exception
<p>This method throws an <code>INVALID_STATE_ERR</code> exception
when invoked on <span>XML documents</span>.</p>

<p>Unless called from the body of a <code>script</code> element
Expand All @@ -10463,7 +10463,7 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
<li>

<p>If the method was invoked on an <span title="XML documents">XML
document</span>, throw an <code>INVALID_ACCESS_ERR</code>
document</span>, throw an <code>INVALID_STATE_ERR</code>
exception and abort these steps.</p>

<!--
Expand Down Expand Up @@ -10543,7 +10543,7 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
<code title="dom-document-open">open()</code> method implicitly
first.</p>

<p>This method throws an <code>INVALID_ACCESS_ERR</code> exception
<p>This method throws an <code>INVALID_STATE_ERR</code> exception
when invoked on <span>XML documents</span>.</p>

</dd>
Expand Down Expand Up @@ -11385,7 +11385,7 @@ gave me some of the songs they wrote. I love sharing my music.&lt;/p>
attribute boolean <span title="dom-link-disabled">disabled</span>;
attribute DOMString <span title="dom-link-href">href</span>;
attribute DOMString <span title="dom-link-rel">rel</span>;
readonly attribute DOMTokenList <span title="dom-link-relList">relList</span>;
readonly attribute <span>DOMTokenList</span> <span title="dom-link-relList">relList</span>;
attribute DOMString <span title="dom-link-media">media</span>;
attribute DOMString <span title="dom-link-hreflang">hreflang</span>;
attribute DOMString <span title="dom-link-type">type</span>;
Expand Down Expand Up @@ -17205,7 +17205,7 @@ included with Exhibit B.
attribute DOMString <span title="dom-a-ping">ping</span>;
<!--START w3c-html--><!--PING-->
attribute DOMString <span title="dom-a-rel">rel</span>;
readonly attribute DOMTokenList <span title="dom-a-relList">relList</span>;
readonly attribute <span>DOMTokenList</span> <span title="dom-a-relList">relList</span>;
attribute DOMString <span title="dom-a-media">media</span>;
attribute DOMString <span title="dom-a-hreflang">hreflang</span>;
attribute DOMString <span title="dom-a-type">type</span>;
Expand Down Expand Up @@ -30819,7 +30819,7 @@ function AddCloud(data, x, y) { ... }</pre>
attribute DOMString <span title="dom-area-ping">ping</span>;
<!--START w3c-html--><!--PING-->
attribute DOMString <span title="dom-area-rel">rel</span>;
readonly attribute DOMTokenList <span title="dom-area-relList">relList</span>;
readonly attribute <span>DOMTokenList</span> <span title="dom-area-relList">relList</span>;
attribute DOMString <span title="dom-area-media">media</span>;
attribute DOMString <span title="dom-area-hreflang">hreflang</span>;
attribute DOMString <span title="dom-area-type">type</span>;
Expand Down

0 comments on commit ced1d85

Please sign in to comment.