HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
4106Make stepUp() and stepDown() arguments optional.2009-10-12 01:10
@@ -34659,22 +34659,22 @@ interface <dfn>HTMLFormElement</dfn> : <span>HTMLElement</span> {
            attribute DOMString <span title="dom-input-src">src</span>;
            attribute DOMString <span title="dom-input-step">step</span>;
            attribute DOMString <span title="dom-input-type">type</span>;
            attribute DOMString <span title="dom-input-defaultValue">defaultValue</span>;
            attribute DOMString <span title="dom-input-value">value</span>;
            attribute <span>Date</span> <span title="dom-input-valueAsDate">valueAsDate</span>;
            attribute float <span title="dom-input-valueAsNumber">valueAsNumber</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>;
   readonly attribute DOMString <span title="dom-cva-validationMessage">validationMessage</span>;
   boolean <span title="dom-cva-checkValidatity">checkValidity</span>();
   void <span title="dom-cva-setCustomValidity">setCustomValidity</span>(in DOMString error);
 
   readonly attribute <span>NodeList</span> <span title="dom-lfe-labels">labels</span>;
 
   void <span title="dom-textarea/input-select">select</span>();
@@ -39921,29 +39921,29 @@ You cannot complete this form until the field is correct.</samp></pre>
     title="concept-fe-value">value</span>, if applicable; otherwise,
     returns null.</p>
 
     <p>Can be set, to change the value.</p>
 
     <p>Throws an <code>INVALID_STATE_ERR</code> exception if the
     control is neither date- or time-based nor numeric.</p>
 
    </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
     title="attr-input-step">step</code> attribute's value is "<code
     title="">any</code>", if the current <span
     title="concept-fe-value">value</span> could not be parsed, or if
     stepping in the given direction by the given amount would take the
     value out of range.</p>
 
    </dd>
@@ -40150,20 +40150,23 @@ You cannot complete this form until the field is correct.</samp></pre>
    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_STATE_ERR</code> exception, and abort
    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>
 
    <li><p>If the method invoked was the <code
    title="dom-input-stepDown">stepDown()</code> method, negate <var
    title="">delta</var>.</p></li>
 
    <li><p>Let <var title="">value</var> be the result of adding <var
    title="">delta</var> to <var title="">value</var>.</p></li>
@@ -94565,20 +94568,21 @@ interface <span>HTMLDocument</span> {
   Roman Ivanov,
   Roy Fielding,
   Ryan King,
   S. Mike Dierken,
   Sam Dutton,
   Sam Kuper,
   Sam Ruby,
   Sam Weinig,
   Sander van Lambalgen,
   Sarven Capadisli,
+  Scott Gonz&aacute;lez,
   Scott Hess,
   Sean Fraser,
   Sean Hogan,
   Sean Knapp,
   Sebastian Markb&aring;ge,
   Sebastian Schnitzenbaumer,
   Seth Call,
   Shanti Rao,
   Shaun Inman,
   Shiki Okasaka,

|