[html5] r8203 - [acgiow] (3) Allow type=time to have min>max, so that times can span midnight. F [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Oct 1 15:57:29 PDT 2013


Author: ianh
Date: 2013-10-01 15:57:27 -0700 (Tue, 01 Oct 2013)
New Revision: 8203

Modified:
   complete.html
   index
   source
Log:
[acgiow] (3) Allow type=time to have min>max, so that times can span midnight.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=7688
Affected topics: HTML

Modified: complete.html
===================================================================
--- complete.html	2013-10-01 18:57:17 UTC (rev 8202)
+++ complete.html	2013-10-01 22:57:27 UTC (rev 8203)
@@ -47830,9 +47830,6 @@
 
   <h6 id="time-state-(type=time)"><span class=secno>4.10.7.1.11 </span><dfn title=attr-input-type-time>Time</dfn> state (<code title="">type=time</code>)</h6>
 
-  <!-- v2: allow min="" and max="" to be set such that the range crosses midnight, as in <input
-  type=time min="23:00" max="02:00"> (from http://www.w3.org/Bugs/Public/show_bug.cgi?id=7688) -->
-
   <div class=impl>
 
   <p>When an <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in
@@ -47872,6 +47869,8 @@
   <p><strong>The <a href=#value-sanitization-algorithm>value sanitization algorithm</a> is as follows</strong>: If the <a href=#concept-fe-value title=concept-fe-value>value</a> of the element is not a <a href=#valid-time-string>valid time string</a>, then
   set it to the empty string instead.</p>
 
+  <p>The form control <a href=#has-a-periodic-domain>has a periodic domain</a>.</p>
+
   </div>
 
   <p>The <code title=attr-input-min><a href=#attr-input-min>min</a></code> attribute, if specified, must have a value that is
@@ -49887,6 +49886,16 @@
 
   <h6 id=the-min-and-max-attributes><span class=secno>4.10.7.3.7 </span>The <code title=attr-input-min><a href=#attr-input-min>min</a></code> and <code title=attr-input-max><a href=#attr-input-max>max</a></code> attributes</h6>
 
+  <p>Some form controls can have explicit constraints applied limiting the allowed range of values
+  that the user can provide. Normally, such a range would be linear and continuous. A form control
+  can <dfn id=has-a-periodic-domain title="has a periodic domain">have a periodic domain</dfn>, however, in which case the
+  form control's broadest possible range is finite, and authors can specify explicit ranges within
+  it that span the boundaries.</p>
+
+  <p class=example>Specifically, the broadest range of a <code title=attr-input-type-time><a href="#time-state-(type=time)">type=time</a></code> control is midnight to midnight (24 hours), and
+  authors can set both continuous linear ranges (such as 9pm to 11pm) and discontinuous ranges
+  spanning midnight (such as 11pm to 1am).</p>
+
   <p>The <dfn id=attr-input-min title=attr-input-min><code>min</code></dfn> and <dfn id=attr-input-max title=attr-input-max><code>max</code></dfn> attributes indicate the allowed range of values for
   the element.</p>
 
@@ -49900,11 +49909,6 @@
   then that number is the element's <dfn id=concept-input-min title=concept-input-min>minimum</dfn>; otherwise, if the
   <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state defines a <dfn id=concept-input-min-default title=concept-input-min-default>default minimum</dfn>, then that is the <a href=#concept-input-min title=concept-input-min>minimum</a>; otherwise, the element has no <a href=#concept-input-min title=concept-input-min>minimum</a>.</p>
 
-  <p><strong>Constraint validation</strong>: When the element has a <a href=#attr-input-min title=attr-input-min>minimum</a>, and the result of applying the <a href=#concept-input-value-string-number 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=#concept-fe-value title=concept-fe-value>value</a> is a number, and the
-  number obtained from that algorithm is less than the <a href=#attr-input-min title=attr-input-min>minimum</a>,
-  the element is <a href=#suffering-from-an-underflow>suffering from an underflow</a>.</p>
-
   <p>The <code title=attr-input-min><a href=#attr-input-min>min</a></code> attribute also defines the <a href=#concept-input-min-zero title=concept-input-min-zero>step base</a>.</p>
 
   <p>If the element has a <code title=attr-input-max><a href=#attr-input-max>max</a></code> attribute, and the result of
@@ -49913,26 +49917,47 @@
   then that number is the element's <dfn id=concept-input-max title=concept-input-max>maximum</dfn>; otherwise, if the
   <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state defines a <dfn id=concept-input-max-default title=concept-input-max-default>default maximum</dfn>, then that is the <a href=#concept-input-max title=concept-input-max>maximum</a>; otherwise, the element has no <a href=#concept-input-max title=concept-input-max>maximum</a>.</p>
 
-  <p><strong>Constraint validation</strong>: When the element has a <a href=#attr-input-max title=attr-input-max>maximum</a>, and the result of applying the <a href=#concept-input-value-string-number 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=#concept-fe-value title=concept-fe-value>value</a> is a number, and the
-  number obtained from that algorithm is more than the <a href=#attr-input-max title=attr-input-max>maximum</a>,
-  the element is <a href=#suffering-from-an-overflow>suffering from an overflow</a>.</p>
-
   </div>
 
-  <p>The <code title=attr-input-max><a href=#attr-input-max>max</a></code> attribute's value (the <a href=#concept-input-max title=concept-input-max>maximum</a>) must not be less than the <code title=attr-input-min><a href=#attr-input-min>min</a></code> attribute's value (its <a href=#concept-input-min title=concept-input-min>minimum</a>).</p>
+  <p>If the element does not <a href=#has-a-periodic-domain title="has a periodic domain">have a periodic domain</a>, the
+  <code title=attr-input-max><a href=#attr-input-max>max</a></code> attribute's value (the <a href=#concept-input-max title=concept-input-max>maximum</a>) must not be less than the <code title=attr-input-min><a href=#attr-input-min>min</a></code> attribute's value (its <a href=#concept-input-min title=concept-input-min>minimum</a>).</p>
 
   <div class=impl>
 
-  <p class=note>If an element has a <a href=#attr-input-max title=attr-input-max>maximum</a> that is less than
-  its <a href=#attr-input-min title=attr-input-min>minimum</a>, then so long as the element has a <a href=#concept-fe-value title=concept-fe-value>value</a>, it will either be <a href=#suffering-from-an-underflow>suffering from an underflow</a>
+  <p class=note>If an element that does not <a href=#has-a-periodic-domain title="has a periodic domain">have a periodic
+  domain</a> has a <a href=#attr-input-max title=attr-input-max>maximum</a> that is less than its <a href=#attr-input-min title=attr-input-min>minimum</a>, then so long as the element has a <a href=#concept-fe-value title=concept-fe-value>value</a>, it will either be <a href=#suffering-from-an-underflow>suffering from an underflow</a>
   or <a href=#suffering-from-an-overflow>suffering from an overflow</a>.</p>
 
+  <p>An element <dfn id=has-a-reversed-range>has a reversed range</dfn> if it <a href=#has-a-periodic-domain>has a periodic domain</a> and its
+  <a href=#concept-input-max title=concept-input-max>maximum</a> is less than its <a href=#concept-input-min title=concept-input-min>minimum</a>.</p>
+
   </div>
 
   <p>An element <dfn id=have-range-limitations title="have range limitations">has range limitations</dfn> if it has a defined
   <a href=#concept-input-min title=concept-input-min>minimum</a> or a defined <a href=#concept-input-max title=concept-input-max>maximum</a>.</p>
 
+  <div class=impl>
+
+  <p><strong>Constraint validation</strong>: When the element has a <a href=#attr-input-min title=attr-input-min>minimum</a> and does not <a href=#has-a-reversed-range title="has a reversed range">have a
+  reversed range</a>, and the result of applying the <a href=#concept-input-value-string-number 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=#concept-fe-value title=concept-fe-value>value</a> is a number, and the
+  number obtained from that algorithm is less than the <a href=#attr-input-min title=attr-input-min>minimum</a>,
+  the element is <a href=#suffering-from-an-underflow>suffering from an underflow</a>.</p>
+
+  <p><strong>Constraint validation</strong>: When the element has a <a href=#attr-input-max title=attr-input-max>maximum</a> and does not <a href=#has-a-reversed-range title="has a reversed range">have a
+  reversed range</a>, and the result of applying the <a href=#concept-input-value-string-number 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=#concept-fe-value title=concept-fe-value>value</a> is a number, and the
+  number obtained from that algorithm is more than the <a href=#attr-input-max title=attr-input-max>maximum</a>,
+  the element is <a href=#suffering-from-an-overflow>suffering from an overflow</a>.</p>
+
+  <p><strong>Constraint validation</strong>: When an element <a href=#has-a-reversed-range>has a reversed range</a>, and
+  the result of applying the <a href=#concept-input-value-string-number 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=#concept-fe-value title=concept-fe-value>value</a> is a number, and the number obtained from that algorithm is
+  more than the <a href=#attr-input-max title=attr-input-max>maximum</a> <em>and</em> less than the <a href=#attr-input-min title=attr-input-min>minimum</a>, the element is simultaneously <a href=#suffering-from-an-underflow>suffering from an
+  underflow</a> and <a href=#suffering-from-an-overflow>suffering from an overflow</a>.</p>
+
+  </div>
+
   <div class=example>
 
    <p>The following date control limits input to dates that are before the 1980s:</p>
@@ -49949,7 +49974,17 @@
 
   </div>
 
+  <div class=example>
 
+   <p>The following time control limits input to those minutes that occur between 9pm and 6am,
+   defaulting to midnight:</p>
+
+   <pre><input name="sleepStart" type=time min="21:00" max="06:00" step="60" value="00:00"></pre>
+
+  </div>
+
+
+
   <h6 id=the-step-attribute><span class=secno>4.10.7.3.8 </span>The <code title=attr-input-step><a href=#attr-input-step>step</a></code> attribute</h6>
 
   <p>The <dfn id=attr-input-step title=attr-input-step><code>step</code></dfn> attribute indicates the granularity
@@ -103584,6 +103619,7 @@
   Cameron McCormack,
   Cameron Zemek,
   Cao Yipeng,
+  Carlos Amengual,
   Carlos Gabriel Cardona,
   Carlos Perelló Marín,
   Chao Cai,
@@ -103946,6 +103982,7 @@
   Mohammad Al Houssami,
   Mounir Lamouri,
   Ms2ger,
+  Nadia Heninger,
   NARUSE Yui,
   Neil Deakin,
   Neil Rashbrook,

Modified: index
===================================================================
--- index	2013-10-01 18:57:17 UTC (rev 8202)
+++ index	2013-10-01 22:57:27 UTC (rev 8203)
@@ -47830,9 +47830,6 @@
 
   <h6 id="time-state-(type=time)"><span class=secno>4.10.7.1.11 </span><dfn title=attr-input-type-time>Time</dfn> state (<code title="">type=time</code>)</h6>
 
-  <!-- v2: allow min="" and max="" to be set such that the range crosses midnight, as in <input
-  type=time min="23:00" max="02:00"> (from http://www.w3.org/Bugs/Public/show_bug.cgi?id=7688) -->
-
   <div class=impl>
 
   <p>When an <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in
@@ -47872,6 +47869,8 @@
   <p><strong>The <a href=#value-sanitization-algorithm>value sanitization algorithm</a> is as follows</strong>: If the <a href=#concept-fe-value title=concept-fe-value>value</a> of the element is not a <a href=#valid-time-string>valid time string</a>, then
   set it to the empty string instead.</p>
 
+  <p>The form control <a href=#has-a-periodic-domain>has a periodic domain</a>.</p>
+
   </div>
 
   <p>The <code title=attr-input-min><a href=#attr-input-min>min</a></code> attribute, if specified, must have a value that is
@@ -49887,6 +49886,16 @@
 
   <h6 id=the-min-and-max-attributes><span class=secno>4.10.7.3.7 </span>The <code title=attr-input-min><a href=#attr-input-min>min</a></code> and <code title=attr-input-max><a href=#attr-input-max>max</a></code> attributes</h6>
 
+  <p>Some form controls can have explicit constraints applied limiting the allowed range of values
+  that the user can provide. Normally, such a range would be linear and continuous. A form control
+  can <dfn id=has-a-periodic-domain title="has a periodic domain">have a periodic domain</dfn>, however, in which case the
+  form control's broadest possible range is finite, and authors can specify explicit ranges within
+  it that span the boundaries.</p>
+
+  <p class=example>Specifically, the broadest range of a <code title=attr-input-type-time><a href="#time-state-(type=time)">type=time</a></code> control is midnight to midnight (24 hours), and
+  authors can set both continuous linear ranges (such as 9pm to 11pm) and discontinuous ranges
+  spanning midnight (such as 11pm to 1am).</p>
+
   <p>The <dfn id=attr-input-min title=attr-input-min><code>min</code></dfn> and <dfn id=attr-input-max title=attr-input-max><code>max</code></dfn> attributes indicate the allowed range of values for
   the element.</p>
 
@@ -49900,11 +49909,6 @@
   then that number is the element's <dfn id=concept-input-min title=concept-input-min>minimum</dfn>; otherwise, if the
   <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state defines a <dfn id=concept-input-min-default title=concept-input-min-default>default minimum</dfn>, then that is the <a href=#concept-input-min title=concept-input-min>minimum</a>; otherwise, the element has no <a href=#concept-input-min title=concept-input-min>minimum</a>.</p>
 
-  <p><strong>Constraint validation</strong>: When the element has a <a href=#attr-input-min title=attr-input-min>minimum</a>, and the result of applying the <a href=#concept-input-value-string-number 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=#concept-fe-value title=concept-fe-value>value</a> is a number, and the
-  number obtained from that algorithm is less than the <a href=#attr-input-min title=attr-input-min>minimum</a>,
-  the element is <a href=#suffering-from-an-underflow>suffering from an underflow</a>.</p>
-
   <p>The <code title=attr-input-min><a href=#attr-input-min>min</a></code> attribute also defines the <a href=#concept-input-min-zero title=concept-input-min-zero>step base</a>.</p>
 
   <p>If the element has a <code title=attr-input-max><a href=#attr-input-max>max</a></code> attribute, and the result of
@@ -49913,26 +49917,47 @@
   then that number is the element's <dfn id=concept-input-max title=concept-input-max>maximum</dfn>; otherwise, if the
   <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state defines a <dfn id=concept-input-max-default title=concept-input-max-default>default maximum</dfn>, then that is the <a href=#concept-input-max title=concept-input-max>maximum</a>; otherwise, the element has no <a href=#concept-input-max title=concept-input-max>maximum</a>.</p>
 
-  <p><strong>Constraint validation</strong>: When the element has a <a href=#attr-input-max title=attr-input-max>maximum</a>, and the result of applying the <a href=#concept-input-value-string-number 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=#concept-fe-value title=concept-fe-value>value</a> is a number, and the
-  number obtained from that algorithm is more than the <a href=#attr-input-max title=attr-input-max>maximum</a>,
-  the element is <a href=#suffering-from-an-overflow>suffering from an overflow</a>.</p>
-
   </div>
 
-  <p>The <code title=attr-input-max><a href=#attr-input-max>max</a></code> attribute's value (the <a href=#concept-input-max title=concept-input-max>maximum</a>) must not be less than the <code title=attr-input-min><a href=#attr-input-min>min</a></code> attribute's value (its <a href=#concept-input-min title=concept-input-min>minimum</a>).</p>
+  <p>If the element does not <a href=#has-a-periodic-domain title="has a periodic domain">have a periodic domain</a>, the
+  <code title=attr-input-max><a href=#attr-input-max>max</a></code> attribute's value (the <a href=#concept-input-max title=concept-input-max>maximum</a>) must not be less than the <code title=attr-input-min><a href=#attr-input-min>min</a></code> attribute's value (its <a href=#concept-input-min title=concept-input-min>minimum</a>).</p>
 
   <div class=impl>
 
-  <p class=note>If an element has a <a href=#attr-input-max title=attr-input-max>maximum</a> that is less than
-  its <a href=#attr-input-min title=attr-input-min>minimum</a>, then so long as the element has a <a href=#concept-fe-value title=concept-fe-value>value</a>, it will either be <a href=#suffering-from-an-underflow>suffering from an underflow</a>
+  <p class=note>If an element that does not <a href=#has-a-periodic-domain title="has a periodic domain">have a periodic
+  domain</a> has a <a href=#attr-input-max title=attr-input-max>maximum</a> that is less than its <a href=#attr-input-min title=attr-input-min>minimum</a>, then so long as the element has a <a href=#concept-fe-value title=concept-fe-value>value</a>, it will either be <a href=#suffering-from-an-underflow>suffering from an underflow</a>
   or <a href=#suffering-from-an-overflow>suffering from an overflow</a>.</p>
 
+  <p>An element <dfn id=has-a-reversed-range>has a reversed range</dfn> if it <a href=#has-a-periodic-domain>has a periodic domain</a> and its
+  <a href=#concept-input-max title=concept-input-max>maximum</a> is less than its <a href=#concept-input-min title=concept-input-min>minimum</a>.</p>
+
   </div>
 
   <p>An element <dfn id=have-range-limitations title="have range limitations">has range limitations</dfn> if it has a defined
   <a href=#concept-input-min title=concept-input-min>minimum</a> or a defined <a href=#concept-input-max title=concept-input-max>maximum</a>.</p>
 
+  <div class=impl>
+
+  <p><strong>Constraint validation</strong>: When the element has a <a href=#attr-input-min title=attr-input-min>minimum</a> and does not <a href=#has-a-reversed-range title="has a reversed range">have a
+  reversed range</a>, and the result of applying the <a href=#concept-input-value-string-number 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=#concept-fe-value title=concept-fe-value>value</a> is a number, and the
+  number obtained from that algorithm is less than the <a href=#attr-input-min title=attr-input-min>minimum</a>,
+  the element is <a href=#suffering-from-an-underflow>suffering from an underflow</a>.</p>
+
+  <p><strong>Constraint validation</strong>: When the element has a <a href=#attr-input-max title=attr-input-max>maximum</a> and does not <a href=#has-a-reversed-range title="has a reversed range">have a
+  reversed range</a>, and the result of applying the <a href=#concept-input-value-string-number 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=#concept-fe-value title=concept-fe-value>value</a> is a number, and the
+  number obtained from that algorithm is more than the <a href=#attr-input-max title=attr-input-max>maximum</a>,
+  the element is <a href=#suffering-from-an-overflow>suffering from an overflow</a>.</p>
+
+  <p><strong>Constraint validation</strong>: When an element <a href=#has-a-reversed-range>has a reversed range</a>, and
+  the result of applying the <a href=#concept-input-value-string-number 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=#concept-fe-value title=concept-fe-value>value</a> is a number, and the number obtained from that algorithm is
+  more than the <a href=#attr-input-max title=attr-input-max>maximum</a> <em>and</em> less than the <a href=#attr-input-min title=attr-input-min>minimum</a>, the element is simultaneously <a href=#suffering-from-an-underflow>suffering from an
+  underflow</a> and <a href=#suffering-from-an-overflow>suffering from an overflow</a>.</p>
+
+  </div>
+
   <div class=example>
 
    <p>The following date control limits input to dates that are before the 1980s:</p>
@@ -49949,7 +49974,17 @@
 
   </div>
 
+  <div class=example>
 
+   <p>The following time control limits input to those minutes that occur between 9pm and 6am,
+   defaulting to midnight:</p>
+
+   <pre><input name="sleepStart" type=time min="21:00" max="06:00" step="60" value="00:00"></pre>
+
+  </div>
+
+
+
   <h6 id=the-step-attribute><span class=secno>4.10.7.3.8 </span>The <code title=attr-input-step><a href=#attr-input-step>step</a></code> attribute</h6>
 
   <p>The <dfn id=attr-input-step title=attr-input-step><code>step</code></dfn> attribute indicates the granularity
@@ -103584,6 +103619,7 @@
   Cameron McCormack,
   Cameron Zemek,
   Cao Yipeng,
+  Carlos Amengual,
   Carlos Gabriel Cardona,
   Carlos Perelló Marín,
   Chao Cai,
@@ -103946,6 +103982,7 @@
   Mohammad Al Houssami,
   Mounir Lamouri,
   Ms2ger,
+  Nadia Heninger,
   NARUSE Yui,
   Neil Deakin,
   Neil Rashbrook,

Modified: source
===================================================================
--- source	2013-10-01 18:57:17 UTC (rev 8202)
+++ source	2013-10-01 22:57:27 UTC (rev 8203)
@@ -52419,9 +52419,6 @@
 
   <h6><dfn title="attr-input-type-time">Time</dfn> state (<code title="">type=time</code>)</h6>
 
-  <!-- v2: allow min="" and max="" to be set such that the range crosses midnight, as in <input
-  type=time min="23:00" max="02:00"> (from http://www.w3.org/Bugs/Public/show_bug.cgi?id=7688) -->
-
   <div class="impl">
 
   <p>When an <code>input</code> element's <code title="attr-input-type">type</code> attribute is in
@@ -52466,6 +52463,8 @@
   title="concept-fe-value">value</span> of the element is not a <span>valid time string</span>, then
   set it to the empty string instead.</p>
 
+  <p>The form control <span>has a periodic domain</span>.</p>
+
   </div>
 
   <p>The <code title="attr-input-min">min</code> attribute, if specified, must have a value that is
@@ -54663,6 +54662,17 @@
   <h6>The <code title="attr-input-min">min</code> and <code
   title="attr-input-max">max</code> attributes</h6>
 
+  <p>Some form controls can have explicit constraints applied limiting the allowed range of values
+  that the user can provide. Normally, such a range would be linear and continuous. A form control
+  can <dfn title="has a periodic domain">have a periodic domain</dfn>, however, in which case the
+  form control's broadest possible range is finite, and authors can specify explicit ranges within
+  it that span the boundaries.</p>
+
+  <p class="example">Specifically, the broadest range of a <code
+  title="attr-input-type-time">type=time</code> control is midnight to midnight (24 hours), and
+  authors can set both continuous linear ranges (such as 9pm to 11pm) and discontinuous ranges
+  spanning midnight (such as 11pm to 1am).</p>
+
   <p>The <dfn title="attr-input-min"><code>min</code></dfn> and <dfn
   title="attr-input-max"><code>max</code></dfn> attributes indicate the allowed range of values for
   the element.</p>
@@ -54681,13 +54691,6 @@
   title="concept-input-min">minimum</span>; otherwise, the element has no <span
   title="concept-input-min">minimum</span>.</p>
 
-  <p><strong>Constraint validation</strong>: When the element has a <span
-  title="attr-input-min">minimum</span>, and the result of 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> is a number, and the
-  number obtained from that algorithm is less than the <span title="attr-input-min">minimum</span>,
-  the element is <span>suffering from an underflow</span>.</p>
-
   <p>The <code title="attr-input-min">min</code> attribute also defines the <span
   title="concept-input-min-zero">step base</span>.</p>
 
@@ -54700,33 +54703,60 @@
   title="concept-input-max">maximum</span>; otherwise, the element has no <span
   title="concept-input-max">maximum</span>.</p>
 
-  <p><strong>Constraint validation</strong>: When the element has a <span
-  title="attr-input-max">maximum</span>, and the result of 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> is a number, and the
-  number obtained from that algorithm is more than the <span title="attr-input-max">maximum</span>,
-  the element is <span>suffering from an overflow</span>.</p>
-
   </div>
 
-  <p>The <code title="attr-input-max">max</code> attribute's value (the <span
+  <p>If the element does not <span title="has a periodic domain">have a periodic domain</span>, the
+  <code title="attr-input-max">max</code> attribute's value (the <span
   title="concept-input-max">maximum</span>) must not be less than the <code
   title="attr-input-min">min</code> attribute's value (its <span
   title="concept-input-min">minimum</span>).</p>
 
   <div class="impl">
 
-  <p class="note">If an element has a <span title="attr-input-max">maximum</span> that is less than
-  its <span title="attr-input-min">minimum</span>, then so long as the element has a <span
+  <p class="note">If an element that does not <span title="has a periodic domain">have a periodic
+  domain</span> has a <span title="attr-input-max">maximum</span> that is less than its <span
+  title="attr-input-min">minimum</span>, then so long as the element has a <span
   title="concept-fe-value">value</span>, it will either be <span>suffering from an underflow</span>
   or <span>suffering from an overflow</span>.</p>
 
+  <p>An element <dfn>has a reversed range</dfn> if it <span>has a periodic domain</span> and its
+  <span title="concept-input-max">maximum</span> is less than its <span
+  title="concept-input-min">minimum</span>.</p>
+
   </div>
 
   <p>An element <dfn title="have range limitations">has range limitations</dfn> if it has a defined
   <span title="concept-input-min">minimum</span> or a defined <span
   title="concept-input-max">maximum</span>.</p>
 
+  <div class="impl">
+
+  <p><strong>Constraint validation</strong>: When the element has a <span
+  title="attr-input-min">minimum</span> and does not <span title="has a reversed range">have a
+  reversed range</span>, and the result of 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> is a number, and the
+  number obtained from that algorithm is less than the <span title="attr-input-min">minimum</span>,
+  the element is <span>suffering from an underflow</span>.</p>
+
+  <p><strong>Constraint validation</strong>: When the element has a <span
+  title="attr-input-max">maximum</span> and does not <span title="has a reversed range">have a
+  reversed range</span>, and the result of 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> is a number, and the
+  number obtained from that algorithm is more than the <span title="attr-input-max">maximum</span>,
+  the element is <span>suffering from an overflow</span>.</p>
+
+  <p><strong>Constraint validation</strong>: When an element <span>has a reversed range</span>, and
+  the result of 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> is a number, and the number obtained from that algorithm is
+  more than the <span title="attr-input-max">maximum</span> <em>and</em> less than the <span
+  title="attr-input-min">minimum</span>, the element is simultaneously <span>suffering from an
+  underflow</span> and <span>suffering from an overflow</span>.</p>
+
+  </div>
+
   <div class="example">
 
    <p>The following date control limits input to dates that are before the 1980s:</p>
@@ -54743,7 +54773,17 @@
 
   </div>
 
+  <div class="example">
 
+   <p>The following time control limits input to those minutes that occur between 9pm and 6am,
+   defaulting to midnight:</p>
+
+   <pre><input name="sleepStart" type=time min="21:00" max="06:00" step="60" value="00:00"></pre>
+
+  </div>
+
+
+
   <h6>The <code title="attr-input-step">step</code> attribute</h6>
 
   <p>The <dfn title="attr-input-step"><code>step</code></dfn> attribute indicates the granularity
@@ -116105,6 +116145,7 @@
   Cameron McCormack,
   Cameron Zemek,
   Cao Yipeng,
+  Carlos Amengual,
   Carlos Gabriel Cardona,
   Carlos Perelló Marín,
   Chao Cai,
@@ -116467,6 +116508,7 @@
   Mohammad Al Houssami,
   Mounir Lamouri,
   Ms2ger,
+  Nadia Heninger,
   NARUSE Yui,
   Neil Deakin,
   Neil Rashbrook,




More information about the Commit-Watchers mailing list