Skip to content
Permalink
Browse files
[] (0) Make stepUp() and stepDown() arguments optional.
git-svn-id: http://svn.whatwg.org/webapps@4106 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 12, 2009
1 parent df00bc5 commit 62f559b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 15 deletions.
@@ -31393,8 +31393,8 @@ <h4 id=the-input-element><span class=secno>4.10.5 </span>The <dfn><code>input</c
readonly attribute <a href=#htmloptionelement>HTMLOptionElement</a> <a href=#dom-input-selectedoption title=dom-input-selectedOption>selectedOption</a>;
attribute DOMString <a href=#dom-dim-width title=dom-dim-width>width</a>;

void <a href=#dom-input-stepup title=dom-input-stepUp>stepUp</a>(in long n);
void <a href=#dom-input-stepdown title=dom-input-stepDown>stepDown</a>(in long n);
void <a href=#dom-input-stepup title=dom-input-stepUp>stepUp</a>(in optional long n);
void <a href=#dom-input-stepdown title=dom-input-stepDown>stepDown</a>(in optional long n);

readonly attribute boolean <a href=#dom-cva-willvalidate title=dom-cva-willValidate>willValidate</a>;
readonly attribute <a href=#validitystate>ValidityState</a> <a href=#dom-cva-validity title=dom-cva-validity>validity</a>;
@@ -36041,14 +36041,14 @@ <h5 id=common-input-element-apis><span class=secno>4.10.5.3 </span>Common <code>

</dd>

<dt><var title="">input</var> . <code title=dom-input-stepUp><a href=#dom-input-stepup>stepUp</a></code>(<var title="">n</var>)</dt>
<dt><var title="">input</var> . <code title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown</a></code>(<var title="">n</var>)</dt>
<dt><var title="">input</var> . <code title=dom-input-stepUp><a href=#dom-input-stepup>stepUp</a></code>( [ <var title="">n</var> ] )</dt>
<dt><var title="">input</var> . <code title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown</a></code>( [ <var title="">n</var> ] )</dt>

<dd>

<p>Changes the form control's <a href=#concept-fe-value title=concept-fe-value>value</a> by the value given in the
<code title=attr-input-step><a href=#attr-input-step>step</a></code> attribute, multiplied by
<var title="">n</var>.</p>
<var title="">n</var>. The default is 1.</p>

<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
@@ -36201,6 +36201,9 @@ <h5 id=common-input-element-apis><span class=secno>4.10.5.3 </span>Common <code>
these steps; otherwise, let <var title="">value</var> be the result
of that algorithm.</li>

<li><p>Let <var title="">n</var> be the argument, or 1 if the
argument was omitted.</li>

<li><p>Let <var title="">delta</var> be the <a href=#concept-input-step title=concept-input-step>allowed value step</a> multiplied by
<var title="">n</var>.</li>

@@ -85797,6 +85800,7 @@ <h2 class=no-num id=references>References</h2><!--REFS-->
Sam Weinig,
Sander van Lambalgen,
Sarven Capadisli,
Scott Gonz&aacute;lez,
Scott Hess,
Sean Fraser,
Sean Hogan,
14 index
@@ -31229,8 +31229,8 @@ interface <dfn id=htmlformelement>HTMLFormElement</dfn> : <a href=#htmlelement>H
readonly attribute <a href=#htmloptionelement>HTMLOptionElement</a> <a href=#dom-input-selectedoption title=dom-input-selectedOption>selectedOption</a>;
attribute DOMString <a href=#dom-dim-width title=dom-dim-width>width</a>;

void <a href=#dom-input-stepup title=dom-input-stepUp>stepUp</a>(in long n);
void <a href=#dom-input-stepdown title=dom-input-stepDown>stepDown</a>(in long n);
void <a href=#dom-input-stepup title=dom-input-stepUp>stepUp</a>(in optional long n);
void <a href=#dom-input-stepdown title=dom-input-stepDown>stepDown</a>(in optional long n);

readonly attribute boolean <a href=#dom-cva-willvalidate title=dom-cva-willValidate>willValidate</a>;
readonly attribute <a href=#validitystate>ValidityState</a> <a href=#dom-cva-validity title=dom-cva-validity>validity</a>;
@@ -35877,14 +35877,14 @@ You cannot complete this form until the field is correct.</samp></pre>

</dd>

<dt><var title="">input</var> . <code title=dom-input-stepUp><a href=#dom-input-stepup>stepUp</a></code>(<var title="">n</var>)</dt>
<dt><var title="">input</var> . <code title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown</a></code>(<var title="">n</var>)</dt>
<dt><var title="">input</var> . <code title=dom-input-stepUp><a href=#dom-input-stepup>stepUp</a></code>( [ <var title="">n</var> ] )</dt>
<dt><var title="">input</var> . <code title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown</a></code>( [ <var title="">n</var> ] )</dt>

<dd>

<p>Changes the form control's <a href=#concept-fe-value title=concept-fe-value>value</a> by the value given in the
<code title=attr-input-step><a href=#attr-input-step>step</a></code> attribute, multiplied by
<var title="">n</var>.</p>
<var title="">n</var>. The default is 1.</p>

<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
@@ -36037,6 +36037,9 @@ You cannot complete this form until the field is correct.</samp></pre>
these steps; otherwise, let <var title="">value</var> be the result
of that algorithm.</li>

<li><p>Let <var title="">n</var> be the argument, or 1 if the
argument was omitted.</li>

<li><p>Let <var title="">delta</var> be the <a href=#concept-input-step title=concept-input-step>allowed value step</a> multiplied by
<var title="">n</var>.</li>

@@ -76795,6 +76798,7 @@ interface <a href=#htmldocument>HTMLDocument</a> {
Sam Weinig,
Sander van Lambalgen,
Sarven Capadisli,
Scott Gonz&aacute;lez,
Scott Hess,
Sean Fraser,
Sean Hogan,
14 source
@@ -34666,8 +34666,8 @@ interface <dfn>HTMLFormElement</dfn> : <span>HTMLElement</span> {
readonly attribute <span>HTMLOptionElement</span> <span title="dom-input-selectedOption">selectedOption</span>;
attribute DOMString <span title="dom-dim-width">width</span>;

void <span title="dom-input-stepUp">stepUp</span>(in long n);
void <span title="dom-input-stepDown">stepDown</span>(in long n);
void <span title="dom-input-stepUp">stepUp</span>(in optional long n);
void <span title="dom-input-stepDown">stepDown</span>(in optional long n);

readonly attribute boolean <span title="dom-cva-willValidate">willValidate</span>;
readonly attribute <span>ValidityState</span> <span title="dom-cva-validity">validity</span>;
@@ -39928,15 +39928,15 @@ You cannot complete this form until the field is correct.</samp></pre>

</dd>

<dt><var title="">input</var> . <code title="dom-input-stepUp">stepUp</code>(<var title="">n</var>)</dt>
<dt><var title="">input</var> . <code title="dom-input-stepDown">stepDown</code>(<var title="">n</var>)</dt>
<dt><var title="">input</var> . <code title="dom-input-stepUp">stepUp</code>( [ <var title="">n</var> ] )</dt>
<dt><var title="">input</var> . <code title="dom-input-stepDown">stepDown</code>( [ <var title="">n</var> ] )</dt>

<dd>

<p>Changes the form control's <span
title="concept-fe-value">value</span> by the value given in the
<code title="attr-input-step">step</code> attribute, multiplied by
<var title="">n</var>.</p>
<var title="">n</var>. The default is 1.</p>

<p>Throws <code>INVALID_STATE_ERR</code> exception if the control
is neither date- or time-based nor numeric, if the <code
@@ -40157,6 +40157,9 @@ You cannot complete this form until the field is correct.</samp></pre>
these steps; otherwise, let <var title="">value</var> be the result
of that algorithm.</p></li>

<li><p>Let <var title="">n</var> be the argument, or 1 if the
argument was omitted.</p></li>

<li><p>Let <var title="">delta</var> be the <span
title="concept-input-step">allowed value step</span> multiplied by
<var title="">n</var>.</p></li>
@@ -94572,6 +94575,7 @@ interface <span>HTMLDocument</span> {
Sam Weinig,
Sander van Lambalgen,
Sarven Capadisli,
Scott Gonz&aacute;lez,
Scott Hess,
Sean Fraser,
Sean Hogan,

0 comments on commit 62f559b

Please sign in to comment.