W3C home > Mailing lists > Public > public-html-diffs@w3.org > September 2008

spec/Overview.html 1.1420 2247 WF2: stepUp/stepDown shouldn't go out of

From: poot <cvsmail@w3.org>
Date: Tue, 30 Sep 2008 13:14:46 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20080930041446.E41B82BBEF@toro.w3.mag.keio.ac.jp>

WF2: stepUp/stepDown shouldn't go out of range. Allow rounding of
datetime controls. (whatwg r2247)

4.10.4.1.13. Checkbox state
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1420.html#checkbox
stepDown()
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1420.html#stepdown
maximum
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1420.html#maximum0
4.10.4.3.2. Others...
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1420.html#others...
max
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1420.html#max4
4.10.4.1.12. Range state
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1420.html#range
minimum
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1420.html#minimum
4.10.4.2.5. The step attribute
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1420.html#the-step
4.10.4.1.5. Date and Time state
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1420.html#date-and

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1419&r2=1.1420&f=h
http://html5.org/tools/web-apps-tracker?from=2246&to=2247

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1419
retrieving revision 1.1420
diff -u -d -r1.1419 -r1.1420
--- Overview.html	30 Sep 2008 03:37:21 -0000	1.1419
+++ Overview.html	30 Sep 2008 04:11:02 -0000	1.1420
@@ -30087,8 +30087,13 @@
    title=concept-input-step-scale>step scale factor</a> is 1000 (which
    converts the seconds to milliseconds, as used in the other algorithms).
    The <a href="#default2" title=concept-input-step-default>default step</a>
-   is 60 seconds.</p>
-  <!-- XXX allow rounding -->
+   is 60 seconds.
+
+  <p>When the element is <a href="#suffering3">suffering from a step
+   mismatch</a>, the user agent may round the element's <span
+   title=concept-input-value>value</span> to the nearest date and time for
+   which the element would not <a href="#suffering3" title="suffering from a
+   step mismatch">suffer from a step mismatch</a>.
 
   <hr>
 
@@ -30254,7 +30259,8 @@
    the <a href="#range1" title=attr-input-type-range>Range</a> state, the
    rules in this section apply.
 
-  <p class=big-issue>...
+  <p class=big-issue>...</p>
+  <!-- XXX default min/max, calling valueAsNumber with out-of-range values -->
 
   <h6 id=checkbox><span class=secno>4.10.4.1.13. </span><dfn id=checkbox1
    title=attr-input-type-checkbox>Checkbox</dfn> state</h6>
@@ -30550,37 +30556,61 @@
    title=attr-input-type><a href="#type14">type</a></code> attribute's
    current state.
 
-  <p><strong>Constraint validation:</strong> When the element has a <code
-   title=attr-input-min><a href="#min2">min</a></code> attribute, and the
-   result of applying the <a href="#algorithm5"
-   title=concept-input-value-string-number>algorithm to convert a string to a
-   number</a> to the string given by the element's <a href="#value12"
-   title=concept-fe-value>value</a> is a number, and the result of applying
-   the <a href="#algorithm5"
-   title=concept-input-value-string-number>algorithm to convert a string to a
-   number</a> to the value of the <code title=attr-input-min><a
-   href="#min2">min</a></code> attribute is also a number, and the number
-   obtained from the former is less than the number obtained from the latter,
-   the element is <a href="#suffering1">suffering from an underflow</a>.
+  <p>If the element has a <code title=attr-input-min><a
+   href="#min2">min</a></code> attribute, and the result of applying the <a
+   href="#algorithm5" title=concept-input-value-string-number>algorithm to
+   convert a string to a number</a> to the value of the <code
+   title=attr-input-min><a href="#min2">min</a></code> attribute is a a
+   number, then that number is the element's <dfn id=minimum
+   title=concept-input-min>minimum</dfn>. (Otherwise, the element has no <a
+   href="#minimum" title=concept-input-min>minimum</a>.)
 
-  <p><strong>Constraint validation:</strong> When the element has a <code
-   title=attr-input-max><a href="#max4">max</a></code> attribute, and the
-   result of applying the <a href="#algorithm5"
-   title=concept-input-value-string-number>algorithm to convert a string to a
-   number</a> to the string given by the element's <a href="#value12"
-   title=concept-fe-value>value</a> is a number, and the result of applying
+  <p><strong>Constraint validation:</strong> When the element has a <a
+   href="#min2" title=attr-input-min>minimum</a>, and the result of applying
    the <a href="#algorithm5"
    title=concept-input-value-string-number>algorithm to convert a string to a
-   number</a> to the value of the <code title=attr-input-max><a
-   href="#max4">max</a></code> attribute is also a number, and the number
-   obtained from the former is greater than the number obtained from the
-   latter, the element is <a href="#suffering2">suffering from an
-   overflow</a>.
+   number</a> to the string given by the element's <a href="#value12"
+   title=concept-fe-value>value</a> is a number, and the number obtained from
+   that algorithm is less than the <a href="#min2"
+   title=attr-input-min>minimum</a>, the element is <a
+   href="#suffering1">suffering from an underflow</a>.
 
   <p>The <code title=attr-input-min><a href="#min2">min</a></code> attribute
    also defines the <a href="#step-base" title=concept-input-min-zero>step
    base</a>.
 
+  <p>If the element has a <code title=attr-input-max><a
+   href="#max4">max</a></code> attribute, and the result of applying the <a
+   href="#algorithm5" title=concept-input-value-string-number>algorithm to
+   convert a string to a number</a> to the value of the <code
+   title=attr-input-max><a href="#max4">max</a></code> attribute is a a
+   number, then that number is the element's <dfn id=maximum0
+   title=concept-input-max>maximum</dfn>. (Otherwise, the element has no <a
+   href="#maximum0" title=concept-input-max>maximum</a>.)
+
+  <p><strong>Constraint validation:</strong> When the element has a <a
+   href="#max4" title=attr-input-max>maximum</a>, and the result of applying
+   the <a href="#algorithm5"
+   title=concept-input-value-string-number>algorithm to convert a string to a
+   number</a> to the string given by the element's <a href="#value12"
+   title=concept-fe-value>value</a> is a number, and the number obtained from
+   that algorithm is more than the <a href="#max4"
+   title=attr-input-max>maximum</a>, the element is <a
+   href="#suffering2">suffering from an overflow</a>.
+
+  <p>The <code title=attr-input-max><a href="#max4">max</a></code>
+   attribute's value (the <a href="#maximum0"
+   title=concept-input-max>maximum</a>) must not be less than the <code
+   title=attr-input-min><a href="#min2">min</a></code> attribute's value (its
+   <a href="#minimum" title=concept-input-min>minimum</a>).
+
+  <p class=note>If an element has a <a href="#max4"
+   title=attr-input-max>maximum</a> that is less than its <a href="#min2"
+   title=attr-input-min>minimum</a>, then so long as the element has a <a
+   href="#value12" title=concept-fe-value>value</a>, it will either be <a
+   href="#suffering1">suffering from an underflow</a> or <a
+   href="#suffering2">suffering from an overflow</a>.
+
   <h6 id=the-step><span class=secno>4.10.4.2.5. </span>The <code
    title=attr-input-step><a href="#step0">step</a></code> attribute</h6>
 
@@ -30747,7 +30777,7 @@
 
    <li>
     <p>If the element has no <a href="#allowed"
-     title=concept-input-step>allowed value step</a>, then throw a
+     title=concept-input-step>allowed value step</a>, then throw an
      <code>INVALID_ACCESS_ERR</code> exception, and abort these steps.
 
    <li>
@@ -30770,13 +30800,30 @@
      title="">value</var>.
 
    <li>
-    <p>Run the <a href="#algorithm6"
-     title=concept-input-value-number-string>algorithm to convert a number to
-     a string</a>, as defined for the <code><a
+    <p>Let <var title="">value as string</var> be the result of running the
+     <a href="#algorithm6" title=concept-input-value-number-string>algorithm
+     to convert a number to a string</a>, as defined for the <code><a
      href="#input0">input</a></code> element's <code title=attr-input-type><a
      href="#type14">type</a></code> attribute's current state, on <var
-     title="">value</var>, and set the <a href="#value12"
-     title=concept-fe-value>value</a> of the element to the resulting string.
+     title="">value</var>.
+
+   <li>
+    <p>If the element has a <a href="#minimum"
+     title=concept-input-min>minimum</a>, and the <var title="">value</var>
+     is less than that <a href="#minimum"
+     title=concept-input-min>minimum</a>, then throw a
+     <code>INVALID_ACCESS_ERR</code> exception.
+
+   <li>
+    <p>If the element has a <a href="#maximum0"
+     title=concept-input-max>maximum</a>, and the <var title="">value</var>
+     is greater than that <a href="#maximum0"
+     title=concept-input-max>maximum</a>, then throw a
+     <code>INVALID_ACCESS_ERR</code> exception.
+
+   <li>
+    <p>Set the <a href="#value12" title=concept-fe-value>value</a> of the
+     element to <var title="">value as string</var>.
   </ol>
 
   <h6 id=others...><span class=secno>4.10.4.3.2. </span>Others...</h6>
Received on Tuesday, 30 September 2008 04:15:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 06:13:56 GMT