[html5] r2249 - [] (0) WF2: type=datetime-local
whatwg at whatwg.org
whatwg at whatwg.org
Tue Sep 30 01:05:27 PDT 2008
Author: ianh
Date: 2008-09-30 01:05:21 -0700 (Tue, 30 Sep 2008)
New Revision: 2249
Modified:
index
source
Log:
[] (0) WF2: type=datetime-local
Modified: index
===================================================================
--- index 2008-09-30 04:37:17 UTC (rev 2248)
+++ index 2008-09-30 08:05:21 UTC (rev 2249)
@@ -29366,7 +29366,7 @@
<td class=yes> Yes <!-- Date and Time -->
- <td class=yes> Yes <!-- Local Date and Time -->
+ <td class=no> · <!-- Local Date and Time -->
<td class=yes> Yes <!-- Date -->
@@ -30065,15 +30065,13 @@
follows:</strong> If the <a href="#value12"
title=concept-fe-value>value</a> of the element is not a <a
href="#valid6">valid UTC date and time</a>, then set it to the empty
- string instead.</p>
- <!-- MIN AND MAX: -->
+ string instead.
<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 <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>.</p>
- <!-- STEP: -->
+ that is a <a href="#valid6">valid UTC date and time</a>.
<p>The <code title=attr-input-step><a href="#step0">step</a></code>
attribute is expressed in seconds. The <a href="#step-"
@@ -30169,8 +30167,106 @@
the <a href="#local0" title=attr-input-type-datetime-local>Local Date and
Time</a> state, the rules in this section apply.
- <p class=big-issue>...
+ <p>The <code><a href="#input0">input</a></code> element represents a
+ control for setting the element's <a href="#value12"
+ title=concept-fe-value>value</a> to a string representing a <span>date and
+ time</span>, with no time zone information.
+ <p>If the element is <i title=concept-input-mutable><a
+ href="#mutable">mutable</a></i>, the user should allow the user to change
+ the date and time represented by its <a href="#value12"
+ title=concept-fe-value>value</a>, as obtained by <span title="parse a date
+ and time">parsing a date and time</span> from it. User agents must not
+ allow the user to set the <a href="#value12"
+ title=concept-fe-value>value</a> to a string that is not a <span>valid
+ date and time</span>. If the user agent provides a user interface for
+ selecting a date and time, then the <a href="#value12"
+ title=concept-fe-value>value</a> must be set to a <span>valid date and
+ time</span> representing the user's selection. User agents should allow
+ the user to set the <a href="#value12" title=concept-fe-value>value</a> to
+ the empty string.
+
+ <p><strong>The <a href="#value8">value sanitization algorithm</a> is as
+ follows:</strong> If the <a href="#value12"
+ title=concept-fe-value>value</a> of the element is not a <span>valid date
+ and time</span>, then set it to the empty string instead.
+
+ <p>The <code title=attr-input-min><a href="#min2">min</a></code> attribute,
+ if specified, must have a value that is a <span>valid date and
+ time</span>. The <code title=attr-input-max><a href="#max4">max</a></code>
+ attribute, if specified, must have a value that is a <span>valid date and
+ time</span>.
+
+ <p>The <code title=attr-input-step><a href="#step0">step</a></code>
+ attribute is expressed in seconds. The <a href="#step-"
+ 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>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>.
+
+ <p><strong>The <a href="#algorithm5"
+ title=concept-input-value-string-number>algorithm to convert a string to a
+ number</a>, given a string <var title="">input</var>, is as
+ follows:</strong> If <span title="parse a date and time">parsing a date
+ and time</span> from <var title="">input</var> results in an error, then
+ return an error; otherwise, return the number of milliseconds elapsed from
+ midnight on the morning of 1970-01-01 (the time represented by the value
+ "<code title="">1970-01-01T00:00:00.0</code>") to the parsed date and
+ time, ignoring leap seconds.
+
+ <p><strong>The <a href="#algorithm6"
+ title=concept-input-value-number-string>algorithm to convert a number to a
+ string</a>, given a number <var title="">input</var>, is as
+ follows:</strong> Return a <span>valid date and time</span> that
+ represents the date and time that is <var title="">input</var>
+ milliseconds after midnight on the morning of 1970-01-01 (the time
+ represented by the value "<code title="">1970-01-01T00:00:00.0</code>").
+
+ <p>The following common <code><a href="#input0">input</a></code> 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><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><a href="#step0">step</a></code> content attributes;
+ <code title=dom-input-list><a href="#list">list</a></code>, <code
+ title=dom-input-valueAsNumber><a
+ href="#valueasnumber">valueAsNumber</a></code>, <code
+ title=dom-input-selectedOption><a
+ href="#selectedoption">selectedOption</a></code>, <code
+ title=dom-input-stepUp><a href="#stepup">stepUp()</a></code>, and <code
+ title=dom-input-stepDown><a href="#stepdown">stepDown()</a></code> DOM
+ attributes.
+
+ <p>The following content attributes must not be specified and do not apply
+ to the element: <code class=no-backref title=attr-input-accept><a
+ 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-maxlength><a href="#maxlength0">maxlength</a></code>,
+ <code class=no-backref title=attr-input-pattern>pattern</code>, <code
+ class=no-backref title=attr-input-size>size</code>, <code class=no-backref
+ title=attr-input-src>src</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>.
+
+ <p>The following DOM attributes do not apply to the element: <code
+ class=no-backref title=dom-input-valueAsDate><a
+ href="#valueasdate">valueAsDate</a></code> and <code class=no-backref
+ title=dom-input-checked><a href="#checked1">checked</a></code>.
+
<h6 id=date-state><span class=secno>4.10.4.1.7. </span><dfn id=date2
title=attr-input-type-date>Date</dfn> state</h6>
Modified: source
===================================================================
--- source 2008-09-30 04:37:17 UTC (rev 2248)
+++ source 2008-09-30 08:05:21 UTC (rev 2249)
@@ -25995,7 +25995,7 @@
<td class="no"> · <!-- URL -->
<td class="no"> · <!-- Password -->
<td class="yes"> Yes <!-- Date and Time -->
- <td class="yes"> Yes <!-- Local Date and Time -->
+ <td class="no"> · <!-- Local Date and Time -->
<td class="yes"> Yes <!-- Date -->
<td class="yes"> Yes <!-- Month -->
<td class="yes"> Yes <!-- Week -->
@@ -26544,16 +26544,12 @@
of the element is not a <span>valid UTC date and time</span>, then
set it to the empty string instead.</p>
- <!-- MIN AND MAX: -->
-
<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 <code title="attr-input-max">max</code> attribute,
if specified, must have a value that is a <span>valid UTC date and
time</span>.</p>
- <!-- STEP: -->
-
<p>The <code title="attr-input-step">step</code> attribute is
expressed in seconds. The <span
title="concept-input-step-scale">step scale factor</span> is 1000
@@ -26647,10 +26643,103 @@
title="attr-input-type-datetime-local">Local Date and Time</span>
state, the rules in this section apply.</p>
- <p class="big-issue">...</p>
+ <p>The <code>input</code> element represents a control for setting
+ the element's <span title="concept-fe-value">value</span> to a
+ string representing a <span>date and time</span>, with no time zone
+ information.</p>
+ <p>If the element is <i title="concept-input-mutable">mutable</i>,
+ the user should allow the user to change the date and time
+ represented by its <span title="concept-fe-value">value</span>, as
+ obtained by <span title="parse a date and time">parsing a date and
+ time</span> from it. User agents must not allow the user to set the
+ <span title="concept-fe-value">value</span> to a string that is not
+ a <span>valid date and time</span>. If the user agent provides a
+ user interface for selecting a date and time, then the <span
+ title="concept-fe-value">value</span> must be set to a <span>valid
+ date and time</span> representing the user's selection. User agents
+ should allow the user to set the <span
+ title="concept-fe-value">value</span> to the empty string.</p>
+ <p><strong>The <span>value sanitization algorithm</span> is as
+ follows:</strong> If the <span title="concept-fe-value">value</span>
+ of the element is not a <span>valid date and time</span>, then set
+ it to the empty string instead.</p>
+ <p>The <code title="attr-input-min">min</code> attribute, if
+ specified, must have a value that is a <span>valid date and
+ time</span>. The <code title="attr-input-max">max</code> attribute,
+ if specified, must have a value that is a <span>valid date and
+ time</span>.</p>
+
+ <p>The <code title="attr-input-step">step</code> attribute is
+ expressed in seconds. The <span
+ title="concept-input-step-scale">step scale factor</span> is 1000
+ (which converts the seconds to milliseconds, as used in the other
+ algorithms). The <span title="concept-input-step-default">default
+ step</span> is 60 seconds.</p>
+
+ <p>When the element is <span>suffering from a step mismatch</span>,
+ 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 <span title="suffering from a
+ step mismatch">suffer from a step mismatch</span>.</p>
+
+ <p><strong>The <span
+ title="concept-input-value-string-number">algorithm to convert a
+ string to a number</span>, given a string <var title="">input</var>,
+ is as follows:</strong> If <span title="parse a date and
+ time">parsing a date and time</span> from <var title="">input</var>
+ results in an error, then return an error; otherwise, return the
+ number of milliseconds elapsed from midnight on the morning of
+ 1970-01-01 (the time represented by the value "<code
+ title="">1970-01-01T00:00:00.0</code>") to the parsed date and time,
+ ignoring leap seconds.</p>
+
+ <p><strong>The <span
+ title="concept-input-value-number-string">algorithm to convert a
+ number to a string</span>, given a number <var title="">input</var>,
+ is as follows:</strong> Return a <span>valid date and time</span>
+ that represents the date and time that is <var title="">input</var>
+ milliseconds after midnight on the morning of 1970-01-01 (the time
+ represented by the value "<code
+ title="">1970-01-01T00:00:00.0</code>").</p>
+
+ <p>The following common <code>input</code> element content
+ attributes, DOM attributes, and methods apply to the element:
+ <code title="attr-input-autocomplete">autocomplete</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">readonly</code>,
+ <code title="attr-input-required">required</code>, and
+ <code title="attr-input-step">step</code> content attributes;
+ <code title="dom-input-list">list</code>,
+ <code title="dom-input-valueAsNumber">valueAsNumber</code>,
+ <code title="dom-input-selectedOption">selectedOption</code>,
+ <code title="dom-input-stepUp">stepUp()</code>, and
+ <code title="dom-input-stepDown">stepDown()</code> DOM attributes.</p>
+
+ <p>The following content attributes must not be specified and do not
+ apply to the element:
+ <code class="no-backref" title="attr-input-accept">accept</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-maxlength">maxlength</code>,
+ <code class="no-backref" title="attr-input-pattern">pattern</code>,
+ <code class="no-backref" title="attr-input-size">size</code>,
+ <code class="no-backref" title="attr-input-src">src</code>,
+ <code class="no-backref" title="attr-fs-target">target</code>,
+ <code class="no-backref" title="attr-fs-method">method</code>,
+ <code class="no-backref" title="attr-fs-enctype">enctype</code>, and
+ <code class="no-backref" title="attr-fs-action">action</code>.</p>
+
+ <p>The following DOM attributes do not apply to the element:
+ <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code> and
+ <code class="no-backref" title="dom-input-checked">checked</code>.</p>
+
+
+
<h6><dfn title="attr-input-type-date">Date</dfn> state</h6>
<p>When an <code>input</code> element's <code
More information about the Commit-Watchers
mailing list