Skip to content

Commit

Permalink
[giow] (2) Use INVALID_STATE_ERR rather than INVALID_ACCESS_ERR in a …
Browse files Browse the repository at this point in the history
…number of cases.

git-svn-id: http://svn.whatwg.org/webapps@4003 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 25, 2009
1 parent f44b6f2 commit db1304f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
28 changes: 14 additions & 14 deletions index
Expand Up @@ -35590,7 +35590,7 @@ You cannot complete this form until the field is correct.</samp></pre>

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

Expand Down Expand Up @@ -35629,7 +35629,7 @@ You cannot complete this form until the field is correct.</samp></pre>

<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>
Expand All @@ -35643,7 +35643,7 @@ You cannot complete this form until the field is correct.</samp></pre>

<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>
Expand All @@ -35657,7 +35657,7 @@ You cannot complete this form until the field is correct.</samp></pre>
<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>
Expand Down Expand Up @@ -35718,7 +35718,7 @@ You cannot complete this form until the field is correct.</samp></pre>
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
Expand Down Expand Up @@ -35750,7 +35750,7 @@ You cannot complete this form until the field is correct.</samp></pre>

<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
Expand All @@ -35777,7 +35777,7 @@ You cannot complete this form until the field is correct.</samp></pre>

<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,
Expand All @@ -35794,17 +35794,17 @@ You cannot complete this form until the field is correct.</samp></pre>
<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>

Expand All @@ -35815,10 +35815,10 @@ You cannot complete this form until the field is correct.</samp></pre>

<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
Expand Down Expand Up @@ -53414,14 +53414,14 @@ NETWORK:

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

Expand Down
28 changes: 14 additions & 14 deletions source
Expand Up @@ -39615,7 +39615,7 @@ You cannot complete this form until the field is correct.</samp></pre>

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

Expand Down Expand Up @@ -39657,7 +39657,7 @@ You cannot complete this form until the field is correct.</samp></pre>

<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>
Expand All @@ -39672,7 +39672,7 @@ You cannot complete this form until the field is correct.</samp></pre>

<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>
Expand All @@ -39687,7 +39687,7 @@ You cannot complete this form until the field is correct.</samp></pre>
<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
Expand Down Expand Up @@ -39768,7 +39768,7 @@ You cannot complete this form until the field is correct.</samp></pre>
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>
Expand Down Expand Up @@ -39822,7 +39822,7 @@ You cannot complete this form until the field is correct.</samp></pre>
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
Expand Down Expand Up @@ -39862,7 +39862,7 @@ You cannot complete this form until the field is correct.</samp></pre>
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
Expand Down Expand Up @@ -39890,19 +39890,19 @@ You cannot complete this form until the field is correct.</samp></pre>
<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>

Expand All @@ -39920,13 +39920,13 @@ You cannot complete this form until the field is correct.</samp></pre>
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
Expand Down Expand Up @@ -60421,14 +60421,14 @@ NETWORK:

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

Expand Down

0 comments on commit db1304f

Please sign in to comment.