HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/2239

File a bug

SVNBugCommentTime (UTC)
2239WF2: <input type=datetime min> and <input type=datetime max>.2008-09-25 10:47
Index: source
===================================================================
--- source	(revision 2238)
+++ source	(revision 2239)
@@ -26537,6 +26537,13 @@
   of the element is not a <span>valid UTC date and time</span>, then
   set it to the empty string instead.</p>
 
+  <p>The <dfn title="concept-input-value-datetime">selected UTC date
+  and time</dfn> is the result of <span title="parse a UTC date and
+  time">parsing a UTC date and time</span> from the element's <span
+  title="concept-fe-value">value</span>, unless that fails, in which
+  case there is no <span title="concept-input-value-datetime">selected
+  UTC date and time</span>.</p>
+
   <p class="big-issue"><strong>The <span
   title="attr-input-type-datetime">Date and Time</span> state's
   <span><code title="dom-input-valueAsDate">valueAsDate</code> setter
@@ -26547,8 +26554,40 @@
   <span><code title="dom-input-valueAsNumber">valueAsNumber</code>
   setter algorithm</span> is as follows:</strong> ...</p>
 
-  <p class="big-issue"> min, max, step; how to parse them, what they do </p>
+  <p>The <code title="attr-input-min">min</code> attribute, if
+  specified, must have a value that is a <span>valid UTC date and
+  time</span>. The <dfn title="concept-input-min-datetime">minimum UTC
+  date and time</dfn> is the result of <span title="parse a UTC date
+  and time">parsing a UTC date and time</span> from the element's
+  <code title="attr-input-min">min</code> attribute, unless that
+  fails, in which case there is no <span
+  title="concept-input-min-datetime">minimum UTC date and
+  time</span>.</p>
 
+  <p><strong>Constraint validation:</strong> When there is both a
+  <span title="concept-input-value-datetime">selected UTC date and
+  time</span> and a <span title="concept-input-min-datetime">minimum
+  UTC date and time</span>, if the former is less than the latter, the
+  element is <span>suffering from an underflow</span>.</p>
+
+  <p>The <code title="attr-input-max">max</code> attribute, if
+  specified, must have a value that is a <span>valid UTC date and
+  time</span>. The <dfn title="concept-input-max-datetime">maximum UTC
+  date and time</dfn> is the result of <span title="parse a UTC date
+  and time">parsing a UTC date and time</span> from the element's
+  <code title="attr-input-max">max</code> attribute, unless that
+  fails, in which case there is no <span
+  title="concept-input-max-datetime">maximum UTC date and
+  time</span>.</p>
+
+  <p><strong>Constraint validation:</strong> When there is both a
+  <span title="concept-input-value-datetime">selected UTC date and
+  time</span> and a <span title="concept-input-max-datetime">maximum
+  UTC date and time</span>, if the former is more than the latter, the
+  element is <span>suffering from an overflow</span>.</p>
+
+  <p class="big-issue">... <code title="attr-input-step">step</code></p>
+
   <p>When an <code>input</code> element's <code
   title="attr-input-type">type</code> attribute is in the <span
   title="attr-input-type-datetime">Date and Time</span> state, the
@@ -26947,6 +26986,21 @@
 
 
 
+  <h6>Other attributes</h6>
+
+  <p>The <dfn title="attr-input-min"><code>min</code></dfn> and <dfn
+  title="attr-input-max"><code>max</code></dfn> attributes define a
+  range constraint on the value.</p>
+
+  <p>The <dfn title="attr-input-step"><code>step</code></dfn>
+  attribute defines the increments between allowed values.</p>
+
+  <p>These attributes apply for a number of different states, but as
+  their behavior varies from state to state, they are not defined here
+  but instead in the states' own sections.</p>
+
+
+
   <h5>Common <code>input</code> element APIs</h5>
 
   <h6>Value manipulation</h6>
@@ -27654,8 +27708,15 @@
   <p class="big-issue">... <dfn>suffering from being too
   long</dfn></p>
 
+  <p class="big-issue">... <dfn>suffering from on underflow</dfn></p>
 
+  <p class="big-issue">... <dfn>suffering from on overflow</dfn></p>
 
+  <p class="big-issue">... <dfn>suffering from a step
+  mismatch</dfn></p>
+
+
+
   <h5>Constraint validation</h5>
 
   <p>When the user agent is required to <dfn>statically validate the

|