[html5] r2239 - [] (0) WF2: <input type=datetime min> and <input type=datetime max>.
whatwg at whatwg.org
whatwg at whatwg.org
Thu Sep 25 03:47:16 PDT 2008
Author: ianh
Date: 2008-09-25 03:47:16 -0700 (Thu, 25 Sep 2008)
New Revision: 2239
Modified:
index
source
Log:
[] (0) WF2: <input type=datetime min> and <input type=datetime max>.
Modified: index
===================================================================
--- index 2008-09-25 07:51:24 UTC (rev 2238)
+++ index 2008-09-25 10:47:16 UTC (rev 2239)
@@ -1140,6 +1140,9 @@
<li><a href="#the-readonly"><span class=secno>4.10.4.2.3.
</span>The <code title=attr-input-readonly>readonly</code>
attribute</a>
+
+ <li><a href="#other0"><span class=secno>4.10.4.2.4. </span>Other
+ attributes</a>
</ul>
<li><a href="#common5"><span class=secno>4.10.4.3. </span>Common
@@ -1761,7 +1764,7 @@
</span>Link type "<code>prev</code>"</a>
</ul>
- <li><a href="#other0"><span class=secno>5.11.3.20. </span>Other link
+ <li><a href="#other1"><span class=secno>5.11.3.20. </span>Other link
types</a>
</ul>
</ul>
@@ -28072,14 +28075,14 @@
<dd><code title=attr-input-list>list</code>
- <dd><code title=attr-input-max>max</code>
+ <dd><code title=attr-input-max><a href="#max4">max</a></code>
<dd><code title=attr-input-maxlength><a
href="#maxlength0">maxlength</a></code>
<dd><code title=attr-fs-method><a href="#method">method</a></code>
- <dd><code title=attr-input-min>min</code>
+ <dd><code title=attr-input-min><a href="#min2">min</a></code>
<dd><code title=attr-fe-name><a href="#name11">name</a></code>
@@ -28094,7 +28097,7 @@
<dd><code title=attr-input-src>src</code>
- <dd><code title=attr-input-step>step</code>
+ <dd><code title=attr-input-step><a href="#step0">step</a></code>
<dd><code title=attr-fs-target><a href="#target3">target</a></code>
@@ -28396,19 +28399,20 @@
href="#autocomplete0">autocomplete</a></code>, <code
title=attr-input-checked>checked</code>, <code title=attr-fs-enctype><a
href="#enctype">enctype</a></code>, and <code
- title=attr-input-list>list</code>, <code title=attr-input-max>max</code>,
- <code title=attr-input-maxlength><a
+ title=attr-input-list>list</code>, <code title=attr-input-max><a
+ href="#max4">max</a></code>, <code title=attr-input-maxlength><a
href="#maxlength0">maxlength</a></code>, <code title=attr-fs-method><a
- href="#method">method</a></code>, <code title=attr-input-min>min</code>,
- <code title=attr-input-pattern>pattern</code>, <code
+ href="#method">method</a></code>, <code title=attr-input-min><a
+ href="#min2">min</a></code>, <code
+ title=attr-input-pattern>pattern</code>, <code
title=attr-input-readonly><a href="#readonly0">readonly</a></code>, <code
title=attr-input-required>required</code>, <code
title=attr-input-size>size</code>, <code title=attr-input-src>src</code>,
- <code title=attr-input-step>step</code>, and <code title=attr-fs-target><a
- href="#target3">target</a></code> attributes apply to an <code><a
- href="#input0">input</a></code> element depends on the state of its <code
- title=attr-input-type><a href="#type14">type</a></code> attribute.
- Similarly, the <code title=dom-input-checked><a
+ <code title=attr-input-step><a href="#step0">step</a></code>, and <code
+ title=attr-fs-target><a href="#target3">target</a></code> attributes apply
+ to an <code><a href="#input0">input</a></code> element depends on the
+ state of its <code title=attr-input-type><a href="#type14">type</a></code>
+ attribute. Similarly, the <code title=dom-input-checked><a
href="#checked1">checked</a></code>, <code title=dom-input-valueAsDate><a
href="#valueasdate">valueAsDate</a></code>, <code
title=dom-input-valueAsNumber><a
@@ -28774,7 +28778,7 @@
<td class=no> · <!-- Button -->
<tr>
- <th> <code title=attr-input-max>max</code>
+ <th> <code title=attr-input-max><a href="#max4">max</a></code>
<td class=no> · <!-- Text -->
@@ -28904,7 +28908,7 @@
<td class=no> · <!-- Button -->
<tr>
- <th> <code title=attr-input-min>min</code>
+ <th> <code title=attr-input-min><a href="#min2">min</a></code>
<td class=no> · <!-- Text -->
@@ -29163,7 +29167,7 @@
<td class=no> · <!-- Button -->
<tr>
- <th> <code title=attr-input-step>step</code>
+ <th> <code title=attr-input-step><a href="#step0">step</a></code>
<td class=no> · <!-- Text -->
@@ -29740,13 +29744,14 @@
href="#accept0">accept</a></code>, <code class=no-backref
title=attr-input-alt>alt</code>, <code class=no-backref
title=attr-input-checked>checked</code>, <code class=no-backref
- title=attr-input-max>max</code>, <code class=no-backref
- title=attr-input-min>min</code>, <code class=no-backref
- title=attr-input-src>src</code>, <code class=no-backref
- title=attr-input-step>step</code>, <code class=no-backref
- title=attr-fs-target><a href="#target3">target</a></code>, <code
- class=no-backref title=attr-fs-method><a href="#method">method</a></code>,
- <code class=no-backref title=attr-fs-enctype><a
+ title=attr-input-max><a href="#max4">max</a></code>, <code
+ class=no-backref title=attr-input-min><a href="#min2">min</a></code>,
+ <code class=no-backref title=attr-input-src>src</code>, <code
+ class=no-backref title=attr-input-step><a href="#step0">step</a></code>,
+ <code class=no-backref title=attr-fs-target><a
+ href="#target3">target</a></code>, <code class=no-backref
+ title=attr-fs-method><a href="#method">method</a></code>, <code
+ class=no-backref title=attr-fs-enctype><a
href="#enctype">enctype</a></code>, and <code class=no-backref
title=attr-fs-action><a href="#action">action</a></code>.
@@ -29830,13 +29835,14 @@
href="#accept0">accept</a></code>, <code class=no-backref
title=attr-input-alt>alt</code>, <code class=no-backref
title=attr-input-checked>checked</code>, <code class=no-backref
- title=attr-input-max>max</code>, <code class=no-backref
- title=attr-input-min>min</code>, <code class=no-backref
- title=attr-input-src>src</code>, <code class=no-backref
- title=attr-input-step>step</code>, <code class=no-backref
- title=attr-fs-target><a href="#target3">target</a></code>, <code
- class=no-backref title=attr-fs-method><a href="#method">method</a></code>,
- <code class=no-backref title=attr-fs-enctype><a
+ title=attr-input-max><a href="#max4">max</a></code>, <code
+ class=no-backref title=attr-input-min><a href="#min2">min</a></code>,
+ <code class=no-backref title=attr-input-src>src</code>, <code
+ class=no-backref title=attr-input-step><a href="#step0">step</a></code>,
+ <code class=no-backref title=attr-fs-target><a
+ href="#target3">target</a></code>, <code class=no-backref
+ title=attr-fs-method><a href="#method">method</a></code>, <code
+ class=no-backref title=attr-fs-enctype><a
href="#enctype">enctype</a></code>, and <code class=no-backref
title=attr-fs-action><a href="#action">action</a></code>.
@@ -29916,13 +29922,14 @@
href="#accept0">accept</a></code>, <code class=no-backref
title=attr-input-alt>alt</code>, <code class=no-backref
title=attr-input-checked>checked</code>, <code class=no-backref
- title=attr-input-max>max</code>, <code class=no-backref
- title=attr-input-min>min</code>, <code class=no-backref
- title=attr-input-src>src</code>, <code class=no-backref
- title=attr-input-step>step</code>, <code class=no-backref
- title=attr-fs-target><a href="#target3">target</a></code>, <code
- class=no-backref title=attr-fs-method><a href="#method">method</a></code>,
- <code class=no-backref title=attr-fs-enctype><a
+ title=attr-input-max><a href="#max4">max</a></code>, <code
+ class=no-backref title=attr-input-min><a href="#min2">min</a></code>,
+ <code class=no-backref title=attr-input-src>src</code>, <code
+ class=no-backref title=attr-input-step><a href="#step0">step</a></code>,
+ <code class=no-backref title=attr-fs-target><a
+ href="#target3">target</a></code>, <code class=no-backref
+ title=attr-fs-method><a href="#method">method</a></code>, <code
+ class=no-backref title=attr-fs-enctype><a
href="#enctype">enctype</a></code>, and <code class=no-backref
title=attr-fs-action><a href="#action">action</a></code>.
@@ -29993,13 +30000,14 @@
title=attr-input-alt>alt</code>, <code class=no-backref
title=attr-input-checked>checked</code>, <code class=no-backref
title=attr-input-list>list</code>, <code class=no-backref
- title=attr-input-max>max</code>, <code class=no-backref
- title=attr-input-min>min</code>, <code class=no-backref
- title=attr-input-src>src</code>, <code class=no-backref
- title=attr-input-step>step</code>, <code class=no-backref
- title=attr-fs-target><a href="#target3">target</a></code>, <code
- class=no-backref title=attr-fs-method><a href="#method">method</a></code>,
- <code class=no-backref title=attr-fs-enctype><a
+ title=attr-input-max><a href="#max4">max</a></code>, <code
+ class=no-backref title=attr-input-min><a href="#min2">min</a></code>,
+ <code class=no-backref title=attr-input-src>src</code>, <code
+ class=no-backref title=attr-input-step><a href="#step0">step</a></code>,
+ <code class=no-backref title=attr-fs-target><a
+ href="#target3">target</a></code>, <code class=no-backref
+ title=attr-fs-method><a href="#method">method</a></code>, <code
+ class=no-backref title=attr-fs-enctype><a
href="#enctype">enctype</a></code>, and <code class=no-backref
title=attr-fs-action><a href="#action">action</a></code>.
@@ -30061,6 +30069,13 @@
href="#valid6">valid UTC date and time</a>, then set it to the empty
string instead.
+ <p>The <dfn id=selected title=concept-input-value-datetime>selected UTC
+ date and time</dfn> is the result of <a href="#parse0" title="parse a UTC
+ date and time">parsing a UTC date and time</a> from the element's <a
+ href="#value12" title=concept-fe-value>value</a>, unless that fails, in
+ which case there is no <a href="#selected"
+ title=concept-input-value-datetime>selected UTC date and time</a>.
+
<p class=big-issue><strong>The <a href="#date-and0"
title=attr-input-type-datetime>Date and Time</a> state's <a
href="#valueasdate1"><code title=dom-input-valueAsDate>valueAsDate</code>
@@ -30072,8 +30087,39 @@
title=dom-input-valueAsNumber>valueAsNumber</code> setter algorithm</a> is
as follows:</strong> ...
- <p class=big-issue> min, max, step; how to parse them, what they do
+ <p>The <code title=attr-input-min><a href="#min2">min</a></code> attribute,
+ if specified, must have a value that is a <a href="#valid6">valid UTC date
+ and time</a>. The <dfn id=minimum title=concept-input-min-datetime>minimum
+ UTC date and time</dfn> is the result of <a href="#parse0" title="parse a
+ UTC date and time">parsing a UTC date and time</a> from the element's
+ <code title=attr-input-min><a href="#min2">min</a></code> attribute,
+ unless that fails, in which case there is no <a href="#minimum"
+ title=concept-input-min-datetime>minimum UTC date and time</a>.
+ <p><strong>Constraint validation:</strong> When there is both a <a
+ href="#selected" title=concept-input-value-datetime>selected UTC date and
+ time</a> and a <a href="#minimum" title=concept-input-min-datetime>minimum
+ UTC date and time</a>, if the former is less than the latter, the element
+ is <span>suffering from an underflow</span>.
+
+ <p>The <code title=attr-input-max><a href="#max4">max</a></code> attribute,
+ if specified, must have a value that is a <a href="#valid6">valid UTC date
+ and time</a>. The <dfn id=maximum title=concept-input-max-datetime>maximum
+ UTC date and time</dfn> is the result of <a href="#parse0" title="parse a
+ UTC date and time">parsing a UTC date and time</a> from the element's
+ <code title=attr-input-max><a href="#max4">max</a></code> attribute,
+ unless that fails, in which case there is no <a href="#maximum"
+ title=concept-input-max-datetime>maximum UTC date and time</a>.
+
+ <p><strong>Constraint validation:</strong> When there is both a <a
+ href="#selected" title=concept-input-value-datetime>selected UTC date and
+ time</a> and a <a href="#maximum" title=concept-input-max-datetime>maximum
+ UTC date and time</a>, if the former is more than the latter, the element
+ is <span>suffering from an overflow</span>.
+
+ <p class=big-issue>... <code title=attr-input-step><a
+ href="#step0">step</a></code>
+
<p>When an <code><a href="#input0">input</a></code> element's <code
title=attr-input-type><a href="#type14">type</a></code> attribute is in
the <a href="#date-and0" title=attr-input-type-datetime>Date and Time</a>
@@ -30081,12 +30127,13 @@
element content attributes, DOM attributes, and methods apply to the
element: <code title=attr-input-autocomplete><a
href="#autocomplete0">autocomplete</a></code>, <code
- title=attr-input-list>list</code>, <code title=attr-input-max>max</code>,
- <code title=attr-input-min>min</code>, <code title=attr-input-readonly><a
+ title=attr-input-list>list</code>, <code title=attr-input-max><a
+ href="#max4">max</a></code>, <code title=attr-input-min><a
+ href="#min2">min</a></code>, <code title=attr-input-readonly><a
href="#readonly0">readonly</a></code>, <code
title=attr-input-required>required</code>, and <code
- title=attr-input-step>step</code> content attributes; <code
- title=dom-input-list><a href="#list">list</a></code>, <code
+ title=attr-input-step><a href="#step0">step</a></code> content attributes;
+ <code title=dom-input-list><a href="#list">list</a></code>, <code
title=dom-input-valueAsDate><a href="#valueasdate">valueAsDate</a></code>,
<code title=dom-input-valueAsNumber><a
href="#valueasnumber">valueAsNumber</a></code>, <code
@@ -30269,7 +30316,7 @@
matches for any of the other values (i.e. duplicates are not allowed).</p>
<!-- XXX the selected file(s) must either have the given types or be of the given category -->
- <p class=big-issue>... list of <dfn id=selected
+ <p class=big-issue>... list of <dfn id=selected0
title=concept-input-type-file-selected>selected files</dfn>
<h6 id=hidden><span class=secno>4.10.4.1.16. </span><dfn id=hidden1
@@ -30314,7 +30361,7 @@
<p class=big-issue>...
- <p class=big-issue>... image: <dfn id=selected0
+ <p class=big-issue>... image: <dfn id=selected1
title=concept-input-type-image-coordinate>selected coordinate</dfn>
<h6 id=reset><span class=secno>4.10.4.1.19. </span><dfn id=reset2
@@ -30449,30 +30496,30 @@
href="#valid">valid non-negative integer</a>. If the attribute is
specified and applying the <a href="#rules">rules for parsing non-negative
integers</a> to its value results in a number, then that number is the
- element's <dfn id=maximum>maximum allowed value length</dfn>. If the
+ element's <dfn id=maximum0>maximum allowed value length</dfn>. If the
attribute is omitted or parsing its value results in an error, then there
- is no <a href="#maximum">maximum allowed value length</a>.
+ is no <a href="#maximum0">maximum allowed value length</a>.
<p>If the <code><a href="#input0">input</a></code> element has a <a
- href="#maximum">maximum allowed value length</a>, then the <a
+ href="#maximum0">maximum allowed value length</a>, then the <a
href="#codepoint">codepoint length</a> of the value of the element's <code
title=attr-input-value><a href="#value9">value</a></code> attribute must
- be equal to or less than the element's <a href="#maximum">maximum allowed
+ be equal to or less than the element's <a href="#maximum0">maximum allowed
value length</a>.
<p><strong>Constraint validation:</strong> If an <code><a
- href="#input0">input</a></code> element has a <a href="#maximum">maximum
+ href="#input0">input</a></code> element has a <a href="#maximum0">maximum
allowed value length</a>, and it is not <a href="#dirty0"
title=concept-input-dirty>dirty</a>, and the <a
href="#codepoint">codepoint length</a> of the element's <a href="#value12"
title=concept-fe-value>value</a> is greater than the element's <a
- href="#maximum">maximum allowed value length</a>, then the element is <a
+ href="#maximum0">maximum allowed value length</a>, then the element is <a
href="#suffering0">suffering from being too long</a>.
<p>User agents may prevent the user from setting the element's <a
href="#value12" title=concept-fe-value>value</a> to a value whose <a
href="#codepoint">codepoint length</a> is greater than the element's <a
- href="#maximum">maximum allowed value length</a>.
+ href="#maximum0">maximum allowed value length</a>.
<h6 id=the-readonly><span class=secno>4.10.4.2.3. </span>The <code
title=attr-input-readonly><a href="#readonly0">readonly</a></code>
@@ -30489,6 +30536,19 @@
element, the element is <a href="#barred">barred from constraint
validation</a>.
+ <h6 id=other0><span class=secno>4.10.4.2.4. </span>Other attributes</h6>
+
+ <p>The <dfn id=min2 title=attr-input-min><code>min</code></dfn> and <dfn
+ id=max4 title=attr-input-max><code>max</code></dfn> attributes define a
+ range constraint on the value.
+
+ <p>The <dfn id=step0 title=attr-input-step><code>step</code></dfn>
+ attribute defines the increments between allowed values.
+
+ <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.
+
<h5 id=common5><span class=secno>4.10.4.3. </span>Common <code><a
href="#input0">input</a></code> element APIs</h5>
@@ -30887,7 +30947,7 @@
<p class=big-issue>...
- <p class=big-issue>... <dfn id=selected1
+ <p class=big-issue>... <dfn id=selected2
title=concept-option-selected>selected</dfn>
<p class=big-issue>... <dfn id=value11
@@ -31350,6 +31410,13 @@
<p class=big-issue>... <dfn id=suffering0>suffering from being too
long</dfn>
+ <p class=big-issue>... <dfn id=suffering1>suffering from on underflow</dfn>
+
+ <p class=big-issue>... <dfn id=suffering2>suffering from on overflow</dfn>
+
+ <p class=big-issue>... <dfn id=suffering3>suffering from a step
+ mismatch</dfn>
+
<h5 id=constraint><span class=secno>4.10.15.2. </span>Constraint validation</h5>
<p>When the user agent is required to <dfn id=statically>statically
@@ -31591,7 +31658,7 @@
<li>
<p>The <var title="">field</var> element is <var
title="">submitter</var>, and before this algorithm was invoked the
- user <a href="#selected0"
+ user <a href="#selected1"
title=concept-input-type-image-coordinate>indicated a
coordinate</a>. Let <var title="">x</var> be the x-component of the
coordindate selected by the user, and let <var title="">y</var> be
@@ -31635,7 +31702,7 @@
<p>If the <var title="">field</var> element is a <code><a
href="#select">select</a></code> element, then for each <code><a
href="#option">option</a></code> element in the <code><a
- href="#select">select</a></code> element that is <a href="#selected1"
+ href="#select">select</a></code> element that is <a href="#selected2"
title=concept-option-selected>selected</a>, append an entry in the
<var title="">form data set</var> with the <var title="">name</var> as
the name and the <a href="#value11"
@@ -31647,7 +31714,7 @@
href="#input0">input</a></code> element whose <code
title=attr-input-type><a href="#type14">type</a></code> attribute is
in the <span title=attr-input-type-file-state>File Upload</span>
- state, then for each file <a href="#selected"
+ state, then for each file <a href="#selected0"
title=concept-input-type-file-selected>selected</a> in the <code><a
href="#input0">input</a></code> element, append an entry in the <var
title="">form data set</var> with the <var title="">name</var> as the
@@ -44796,7 +44863,7 @@
treat the keyword "<code title="">previous</code>" like the <code
title=rel-prev><a href="#prev">prev</a></code> keyword.
- <h5 id=other0><span class=secno>5.11.3.20. </span>Other link types</h5>
+ <h5 id=other1><span class=secno>5.11.3.20. </span>Other link types</h5>
<p>Other than the types defined above, only types defined as extensions in
the <a href="http://wiki.whatwg.org/wiki/RelExtensions">WHATWG Wiki
Modified: source
===================================================================
--- source 2008-09-25 07:51:24 UTC (rev 2238)
+++ source 2008-09-25 10:47:16 UTC (rev 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
More information about the Commit-Watchers
mailing list