[html5] r4106 - [] (0) Make stepUp() and stepDown() arguments optional.
whatwg at whatwg.org
whatwg at whatwg.org
Sun Oct 11 18:10:44 PDT 2009
Author: ianh
Date: 2009-10-11 18:10:43 -0700 (Sun, 11 Oct 2009)
New Revision: 4106
Modified:
complete.html
index
source
Log:
[] (0) Make stepUp() and stepDown() arguments optional.
Modified: complete.html
===================================================================
--- complete.html 2009-10-12 01:04:09 UTC (rev 4105)
+++ complete.html 2009-10-12 01:10:43 UTC (rev 4106)
@@ -31393,8 +31393,8 @@
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 @@
</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 @@
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 @@
Sam Weinig,
Sander van Lambalgen,
Sarven Capadisli,
+ Scott González,
Scott Hess,
Sean Fraser,
Sean Hogan,
Modified: index
===================================================================
--- index 2009-10-12 01:04:09 UTC (rev 4105)
+++ index 2009-10-12 01:10:43 UTC (rev 4106)
@@ -31229,8 +31229,8 @@
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 @@
</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 @@
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 @@
Sam Weinig,
Sander van Lambalgen,
Sarven Capadisli,
+ Scott González,
Scott Hess,
Sean Fraser,
Sean Hogan,
Modified: source
===================================================================
--- source 2009-10-12 01:04:09 UTC (rev 4105)
+++ source 2009-10-12 01:10:43 UTC (rev 4106)
@@ -34666,8 +34666,8 @@
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 @@
</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 @@
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 @@
Sam Weinig,
Sander van Lambalgen,
Sarven Capadisli,
+ Scott González,
Scott Hess,
Sean Fraser,
Sean Hogan,
More information about the Commit-Watchers
mailing list