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 62f559b15dc37b653aebf7e2843569c6a9e84a7c
Showing with 27 additions and 15 deletions.
  1. +9 −5 complete.html
  2. +9 −5 index
  3. +9 −5 source
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>;

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

Sam Weinig,
Sander van Lambalgen,
Sarven Capadisli,
Scott Gonz&aacute;lez,
Scott Hess,
Sean Fraser,
Sean Hogan,
14 index
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>;

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

Sam Weinig,
Sander van Lambalgen,
Sarven Capadisli,
Scott Gonz&aacute;lez,
Scott Hess,
Sean Fraser,
Sean Hogan,
14 source
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>;

</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
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>
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.
You can’t perform that action at this time.