[html5] r4003 - [giow] (2) Use INVALID_STATE_ERR rather than INVALID_ACCESS_ERR in a number of cases.

whatwg at whatwg.org whatwg at whatwg.org
Fri Sep 25 11:59:53 PDT 2009


Author: ianh
Date: 2009-09-25 11:59:52 -0700 (Fri, 25 Sep 2009)
New Revision: 4003

Modified:
   index
   source
Log:
[giow] (2) Use INVALID_STATE_ERR rather than INVALID_ACCESS_ERR in a number of cases.

Modified: index
===================================================================
--- index	2009-09-25 18:16:07 UTC (rev 4002)
+++ index	2009-09-25 18:59:52 UTC (rev 4003)
@@ -35590,7 +35590,7 @@
 
     <p>Can be set, to change the value.</p>
 
-    <p>Throws an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception if it is
+    <p>Throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception if it is
     set to any value other than the empty string when the control is a
     file upload control.</p>
 
@@ -35629,7 +35629,7 @@
 
     <p>Can be set, to change the value.</p>
 
-    <p>Throws an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception if the
+    <p>Throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception if the
     control isn't date- or time-based.</p>
 
    </dd>
@@ -35643,7 +35643,7 @@
 
     <p>Can be set, to change the value.</p>
 
-    <p>Throws an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception if the
+    <p>Throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception if the
     control is neither date- or time-based nor numeric.</p>
 
    </dd>
@@ -35657,7 +35657,7 @@
     <code title=attr-input-step><a href=#attr-input-step>step</a></code> attribute, multiplied by
     <var title="">n</var>.</p>
 
-    <p>Throws <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception if the control
+    <p>Throws <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception if the control
     is neither date- or time-based nor numeric, if the <code title=attr-input-step><a href=#attr-input-step>step</a></code> attribute's value is "<code title="">any</code>", if the current <a href=#concept-fe-value title=concept-fe-value>value</a> could not be parsed, or if
     stepping in the given direction by the given amount would take the
     value out of range.</p>
@@ -35718,7 +35718,7 @@
    file in the list of <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a>, if
    any, or the empty string if the list is empty. On setting, if the
    new value is the empty string, it must empty the list of <a href=#concept-input-type-file-selected title=concept-input-type-file-selected>selected files</a>;
-   otherwise, it must throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code>
+   otherwise, it must throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
    exception.</dd>
 
   </dl><hr><p>The <dfn id=dom-input-checked title=dom-input-checked><code>checked</code></dfn> IDL
@@ -35750,7 +35750,7 @@
 
   <p>On setting, if the <code title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code> attribute does not
   apply, as defined for the <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state, then
-  throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception; otherwise, if
+  throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception; otherwise, if
   the new value is null, then set the <a href=#concept-fe-value title=concept-fe-value>value</a> of the element to the empty
   string; otherwise, run the <a href=#concept-input-value-date-string title=concept-input-value-date-string>algorithm to convert a
   <code>Date</code> object to a string</a>, as defined for that
@@ -35777,7 +35777,7 @@
 
   <p>On setting, if the <code title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code> attribute does
   not apply, as defined for the <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state, then
-  throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception. Otherwise, if
+  throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception. Otherwise, if
   the <code title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAs<em>Date</em></a></code>
   attribute applies, run the <a href=#concept-input-value-date-string title=concept-input-value-date-string>algorithm to convert a
   <code>Date</code> object to a string</a> defined for that state,
@@ -35794,17 +35794,17 @@
   <ol><li><p>If the <code title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> and
    <code title=dom-input-stepUp><a href=#dom-input-stepup>stepUp()</a></code> methods do not
    apply, as defined for the <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state, then
-   throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception, and abort these
+   throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception, and abort these
    steps.</li>
 
    <li><p>If the element has no <a href=#concept-input-step title=concept-input-step>allowed value step</a>, then throw an
-   <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception, and abort these
+   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception, and abort these
    steps.</li>
 
    <li><p>If applying the <a href=#concept-input-value-string-number title=concept-input-value-string-number>algorithm to convert a
    string to a number</a> to the string given by the element's
    <a href=#concept-fe-value title=concept-fe-value>value</a> results in an error,
-   then throw an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception, and abort
+   then throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception, and abort
    these steps; otherwise, let <var title="">value</var> be the result
    of that algorithm.</li>
 
@@ -35815,10 +35815,10 @@
 
    <li><p>Let <var title="">value</var> be the result of adding <var title="">delta</var> to <var title="">value</var>.</li>
    <li><p>If the element has a <a href=#concept-input-min title=concept-input-min>minimum</a>, and the <var title="">value</var> is less than that <a href=#concept-input-min title=concept-input-min>minimum</a>, then throw a
-   <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception.</li>
+   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</li>
 
    <li><p>If the element has a <a href=#concept-input-max title=concept-input-max>maximum</a>, and the <var title="">value</var> is greater than that <a href=#concept-input-max title=concept-input-max>maximum</a>, then throw a
-   <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception.</li>
+   <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</li>
 
    <li><p>Let <var title="">value as string</var> be the result of
    running the <a href=#concept-input-value-number-string title=concept-input-value-number-string>algorithm to convert a
@@ -53414,14 +53414,14 @@
 
     <p>Invokes the application cache update process.</p>
 
-    <p>Throws an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception if there is no application cache to update.</p>
+    <p>Throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception if there is no application cache to update.</p>
 
    </dd>
 
    <dt><var title="">cache</var> . <code title=dom-appcache-swapCache><a href=#dom-appcache-swapcache>swapCache</a></code>()</dt>
    <dd>
 
-    <p>Switches to the most recent application cache, if there is a newer one. If there isn't, throws an <code><a href=#invalid_access_err>INVALID_ACCESS_ERR</a></code> exception.</p>
+    <p>Switches to the most recent application cache, if there is a newer one. If there isn't, throws an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</p>
 
    </dd>
 

Modified: source
===================================================================
--- source	2009-09-25 18:16:07 UTC (rev 4002)
+++ source	2009-09-25 18:59:52 UTC (rev 4003)
@@ -39615,7 +39615,7 @@
 
     <p>Can be set, to change the value.</p>
 
-    <p>Throws an <code>INVALID_ACCESS_ERR</code> exception if it is
+    <p>Throws an <code>INVALID_STATE_ERR</code> exception if it is
     set to any value other than the empty string when the control is a
     file upload control.</p>
 
@@ -39657,7 +39657,7 @@
 
     <p>Can be set, to change the value.</p>
 
-    <p>Throws an <code>INVALID_ACCESS_ERR</code> exception if the
+    <p>Throws an <code>INVALID_STATE_ERR</code> exception if the
     control isn't date- or time-based.</p>
 
    </dd>
@@ -39672,7 +39672,7 @@
 
     <p>Can be set, to change the value.</p>
 
-    <p>Throws an <code>INVALID_ACCESS_ERR</code> exception if the
+    <p>Throws an <code>INVALID_STATE_ERR</code> exception if the
     control is neither date- or time-based nor numeric.</p>
 
    </dd>
@@ -39687,7 +39687,7 @@
     <code title="attr-input-step">step</code> attribute, multiplied by
     <var title="">n</var>.</p>
 
-    <p>Throws <code>INVALID_ACCESS_ERR</code> exception if the control
+    <p>Throws <code>INVALID_STATE_ERR</code> exception if the control
     is neither date- or time-based nor numeric, if the <code
     title="attr-input-step">step</code> attribute's value is "<code
     title="">any</code>", if the current <span
@@ -39768,7 +39768,7 @@
    any, or the empty string if the list is empty. On setting, if the
    new value is the empty string, it must empty the list of <span
    title="concept-input-type-file-selected">selected files</span>;
-   otherwise, it must throw an <code>INVALID_ACCESS_ERR</code>
+   otherwise, it must throw an <code>INVALID_STATE_ERR</code>
    exception.</dd>
 
   </dl>
@@ -39822,7 +39822,7 @@
   title="dom-input-valueAsDate">valueAsDate</code> attribute does not
   apply, as defined for the <code>input</code> element's <code
   title="attr-input-type">type</code> attribute's current state, then
-  throw an <code>INVALID_ACCESS_ERR</code> exception; otherwise, if
+  throw an <code>INVALID_STATE_ERR</code> exception; otherwise, if
   the new value is null, then set the <span
   title="concept-fe-value">value</span> of the element to the empty
   string; otherwise, run the <span
@@ -39862,7 +39862,7 @@
   title="dom-input-valueAsNumber">valueAsNumber</code> attribute does
   not apply, as defined for the <code>input</code> element's <code
   title="attr-input-type">type</code> attribute's current state, then
-  throw an <code>INVALID_ACCESS_ERR</code> exception. Otherwise, if
+  throw an <code>INVALID_STATE_ERR</code> exception. Otherwise, if
   the <code
   title="dom-input-valueAsDate">valueAs<em>Date</em></code>
   attribute applies, run the <span
@@ -39890,19 +39890,19 @@
    <code title="dom-input-stepUp">stepUp()</code> methods do not
    apply, as defined for the <code>input</code> element's <code
    title="attr-input-type">type</code> attribute's current state, then
-   throw an <code>INVALID_ACCESS_ERR</code> exception, and abort these
+   throw an <code>INVALID_STATE_ERR</code> exception, and abort these
    steps.</p></li>
 
    <li><p>If the element has no <span
    title="concept-input-step">allowed value step</span>, then throw an
-   <code>INVALID_ACCESS_ERR</code> exception, and abort these
+   <code>INVALID_STATE_ERR</code> exception, and abort these
    steps.</p></li>
 
    <li><p>If applying the <span
    title="concept-input-value-string-number">algorithm to convert a
    string to a number</span> to the string given by the element's
    <span title="concept-fe-value">value</span> results in an error,
-   then throw an <code>INVALID_ACCESS_ERR</code> exception, and abort
+   then throw an <code>INVALID_STATE_ERR</code> exception, and abort
    these steps; otherwise, let <var title="">value</var> be the result
    of that algorithm.</p></li>
 
@@ -39920,13 +39920,13 @@
    title="concept-input-min">minimum</span>, and the <var
    title="">value</var> is less than that <span
    title="concept-input-min">minimum</span>, then throw a
-   <code>INVALID_ACCESS_ERR</code> exception.</p></li>
+   <code>INVALID_STATE_ERR</code> exception.</p></li>
 
    <li><p>If the element has a <span
    title="concept-input-max">maximum</span>, and the <var
    title="">value</var> is greater than that <span
    title="concept-input-max">maximum</span>, then throw a
-   <code>INVALID_ACCESS_ERR</code> exception.</p></li>
+   <code>INVALID_STATE_ERR</code> exception.</p></li>
 
    <li><p>Let <var title="">value as string</var> be the result of
    running the <span
@@ -60421,14 +60421,14 @@
 
     <p>Invokes the application cache update process.</p>
 
-    <p>Throws an <code>INVALID_ACCESS_ERR</code> exception if there is no application cache to update.</p>
+    <p>Throws an <code>INVALID_STATE_ERR</code> exception if there is no application cache to update.</p>
 
    </dd>
 
    <dt><var title="">cache</var> . <code title="dom-appcache-swapCache">swapCache</code>()</dt>
    <dd>
 
-    <p>Switches to the most recent application cache, if there is a newer one. If there isn't, throws an <code>INVALID_ACCESS_ERR</code> exception.</p>
+    <p>Switches to the most recent application cache, if there is a newer one. If there isn't, throws an <code>INVALID_STATE_ERR</code> exception.</p>
 
    </dd>
 




More information about the Commit-Watchers mailing list