- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 25 Sep 2008 10:47:23 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv8134 Modified Files: Overview.html Log Message: WF2: <input type=datetime min> and <input type=datetime max>. (whatwg r2239) Index: Overview.html =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.1411 retrieving revision 1.1412 diff -u -d -r1.1411 -r1.1412 --- Overview.html 25 Sep 2008 07:51:28 -0000 1.1411 +++ Overview.html 25 Sep 2008 10:47:20 -0000 1.1412 @@ -1147,6 +1147,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 @@ -1768,7 +1771,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> @@ -28079,14 +28082,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> @@ -28101,7 +28104,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> @@ -28403,19 +28406,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 @@ -28781,7 +28785,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 --> @@ -28911,7 +28915,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 --> @@ -29170,7 +29174,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 --> @@ -29747,13 +29751,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>. @@ -29837,13 +29842,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>. @@ -29923,13 +29929,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>. @@ -30000,13 +30007,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>. @@ -30068,6 +30076,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> @@ -30079,7 +30094,38 @@ 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 @@ -30088,12 +30134,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 @@ -30276,7 +30323,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 @@ -30321,7 +30368,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 @@ -30456,30 +30503,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> @@ -30496,6 +30543,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> @@ -30894,7 +30954,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 @@ -31357,6 +31417,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 @@ -31598,7 +31665,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 @@ -31642,7 +31709,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" @@ -31654,7 +31721,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 @@ -44803,7 +44870,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
Received on Thursday, 25 September 2008 10:47:58 UTC