- From: poot <cvsmail@w3.org>
- Date: Mon, 12 Oct 2009 10:00:03 +0900 (JST)
- To: public-html-diffs@w3.org
hixie: Make stepUp() and stepDown() arguments optional. (whatwg r4106) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3264&r2=1.3265&f=h http://html5.org/tools/web-apps-tracker?from=4105&to=4106 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.3264 retrieving revision 1.3265 diff -u -d -r1.3264 -r1.3265 --- Overview.html 12 Oct 2009 00:53:15 -0000 1.3264 +++ Overview.html 12 Oct 2009 00:59:49 -0000 1.3265 @@ -27814,8 +27814,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>; @@ -31874,14 +31874,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 @@ -32034,6 +32034,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> @@ -70178,6 +70181,7 @@ Sam Weinig, Sander van Lambalgen, Sarven Capadisli, + Scott González, Scott Hess, Sean Fraser, Sean Hogan,
Received on Monday, 12 October 2009 01:00:31 UTC