W3C home > Mailing lists > Public > public-html-diffs@w3.org > September 2009

hixie: Use INVALID_STATE_ERR rather than INVALID_ACCESS_ERR in a number of cases. (whatwg r4003)

From: poot <cvsmail@w3.org>
Date: Sat, 26 Sep 2009 03:52:36 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20090925185236.EAB772BC27@toro.w3.mag.keio.ac.jp>
hixie: Use INVALID_STATE_ERR rather than INVALID_ACCESS_ERR in a number
of cases. (whatwg r4003)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3164&r2=1.3165&f=h
http://html5.org/tools/web-apps-tracker?from=4002&to=4003

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3164
retrieving revision 1.3165
diff -u -d -r1.3164 -r1.3165
--- Overview.html	25 Sep 2009 18:08:33 -0000	1.3164
+++ Overview.html	25 Sep 2009 18:52:16 -0000	1.3165
@@ -31612,7 +31612,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>
 
@@ -31651,7 +31651,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>
@@ -31665,7 +31665,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>
@@ -31679,7 +31679,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>
@@ -31740,7 +31740,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
@@ -31772,7 +31772,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
@@ -31799,7 +31799,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,
@@ -31816,17 +31816,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>
 
@@ -31837,10 +31837,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
@@ -48187,14 +48187,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>
Received on Friday, 25 September 2009 18:53:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:09:00 UTC