[html5] r4863 - [giow] (2) Make document.write() fire INVALID_STATE_ERR for consistency with sim [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Mar 24 01:57:59 PDT 2010


Author: ianh
Date: 2010-03-24 01:57:58 -0700 (Wed, 24 Mar 2010)
New Revision: 4863

Modified:
   complete.html
   index
   source
Log:
[giow] (2) Make document.write() fire INVALID_STATE_ERR for consistency with similar APIs, rather than INVALID_ACCESS_ERR. Also, fix some xrefs in IDL blocks.

Modified: complete.html
===================================================================
--- complete.html	2010-03-24 08:48:01 UTC (rev 4862)
+++ complete.html	2010-03-24 08:57:58 UTC (rev 4863)
@@ -10194,7 +10194,7 @@
     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
@@ -10213,7 +10213,7 @@
   <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>
 
     <!--
@@ -10287,7 +10287,7 @@
     <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>
@@ -11035,7 +11035,7 @@
            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>;
@@ -16301,7 +16301,7 @@
            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>;
@@ -28176,7 +28176,7 @@
            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>;

Modified: index
===================================================================
--- index	2010-03-24 08:48:01 UTC (rev 4862)
+++ index	2010-03-24 08:57:58 UTC (rev 4863)
@@ -10093,7 +10093,7 @@
     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
@@ -10112,7 +10112,7 @@
   <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>
 
     <!--
@@ -10186,7 +10186,7 @@
     <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>
@@ -10934,7 +10934,7 @@
            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>;
@@ -16200,7 +16200,7 @@
            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>;
@@ -28078,7 +28078,7 @@
            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>;

Modified: source
===================================================================
--- source	2010-03-24 08:48:01 UTC (rev 4862)
+++ source	2010-03-24 08:57:58 UTC (rev 4863)
@@ -10439,7 +10439,7 @@
     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
@@ -10463,7 +10463,7 @@
    <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>
 
     <!--
@@ -10543,7 +10543,7 @@
     <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>
@@ -11385,7 +11385,7 @@
            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>;
@@ -17205,7 +17205,7 @@
            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>;
@@ -30819,7 +30819,7 @@
            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>;




More information about the Commit-Watchers mailing list