Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[acgiowt] (2) Allow times to be omitted from <ins datetime>/<del date…
…time>.

git-svn-id: http://svn.whatwg.org/webapps@5341 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 24, 2010
1 parent e03f2fe commit 8bc98d5
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 33 deletions.
33 changes: 22 additions & 11 deletions complete.html
Expand Up @@ -19838,19 +19838,22 @@ <h4 id=attributes-common-to-ins-and-del-elements><span class=secno>4.7.3 </span>
attribute may be used to specify the time and date of the change.</p>

<p>If present, the <code title=attr-mod-datetime><a href=#attr-mod-datetime>datetime</a></code>
attribute must be a <a href=#valid-global-date-and-time-string>valid global date and time string</a>
value.</p>
attribute's value must be a <a href=#valid-date-string-with-optional-time>valid date string with optional
time</a>.</p>

<div class=impl>

<p>User agents must parse the <code title=attr-mod-datetime><a href=#attr-mod-datetime>datetime</a></code> attribute according to the
<a href=#parse-a-global-date-and-time-string>parse a global date and time string</a> algorithm. If that
doesn't return a time, then the modification has no associated
timestamp (the value is non-conforming; it is not a <a href=#valid-global-date-and-time-string>valid
global date and time string</a>). Otherwise, the modification is
marked as having been made at the given datetime. User agents should
use the associated time-zone offset information to determine which
time zone to present the given datetime in.</p>
<a href=#parse-a-date-or-time-string>parse a date or time string</a> algorithm. If that doesn't
return a <a href=#concept-date title=concept-date>date</a> or a <a href=#concept-datetime title=concept-datetime>global date and time</a>, then the
modification has no associated timestamp (the value is
non-conforming; it is not a <a href=#valid-date-string-with-optional-time>valid date string with optional
time</a>). Otherwise, the modification is marked as having been
made at the given <a href=#concept-date title=concept-date>date</a> or <a href=#concept-datetime title=concept-datetime>global date and time</a>. If the given
value is a <a href=#concept-datetime title=concept-datetime>global date and
time</a> then user agents should use the associated time-zone
offset information to determine which time zone to present the given
datetime in.</p>

</div>

Expand Down Expand Up @@ -57376,6 +57379,14 @@ <h4 id=atom><span class=secno>5.5.3 </span>Atom</h4>
<p class=note>This value is used below; it is calculated here
because in certain cases the next step mutates the <var title="">cloned article</var>.</p>

<p class=note>Any <code><a href=#the-ins-element>ins</a></code> or <code><a href=#the-del-element>del</a></code>
elements whose <code title=attr-mod-datetime><a href=#attr-mod-datetime>datetime</a></code>
attributes have values that are just <a href=#valid-date-string title="valid date
string">valid date strings</a> (i.e. that have no time
component) are ignored for the purposes of finding the update
time of an entry.</p> <!-- because atom needs a time, as far as
I can tell -->

</li>

<li>
Expand Down Expand Up @@ -93425,8 +93436,8 @@ <h3 class=no-num id=element-content-categories>Element content categories</h3>
<tr><th> <code title="">datetime</code>
<td> <code title=attr-mod-datetime><a href=#attr-mod-datetime>del</a></code>;
<code title=attr-mod-datetime><a href=#attr-mod-datetime>ins</a></code>
<td> Time and date of the change
<td> <a href=#valid-global-date-and-time-string>Valid global date and time string</a>
<td> Date and (optionally) time of the change
<td> <a href=#valid-date-string-with-optional-time>Valid date string with optional time</a>
<tr><th> <code title="">datetime</code>
<td> <code title=attr-time-datetime><a href=#attr-time-datetime>time</a></code>
<td> Value of the element
Expand Down
33 changes: 22 additions & 11 deletions index
Expand Up @@ -19760,19 +19760,22 @@ Sydney&lt;/p&gt;</pre>
attribute may be used to specify the time and date of the change.</p>

<p>If present, the <code title=attr-mod-datetime><a href=#attr-mod-datetime>datetime</a></code>
attribute must be a <a href=#valid-global-date-and-time-string>valid global date and time string</a>
value.</p>
attribute's value must be a <a href=#valid-date-string-with-optional-time>valid date string with optional
time</a>.</p>

<div class=impl>

<p>User agents must parse the <code title=attr-mod-datetime><a href=#attr-mod-datetime>datetime</a></code> attribute according to the
<a href=#parse-a-global-date-and-time-string>parse a global date and time string</a> algorithm. If that
doesn't return a time, then the modification has no associated
timestamp (the value is non-conforming; it is not a <a href=#valid-global-date-and-time-string>valid
global date and time string</a>). Otherwise, the modification is
marked as having been made at the given datetime. User agents should
use the associated time-zone offset information to determine which
time zone to present the given datetime in.</p>
<a href=#parse-a-date-or-time-string>parse a date or time string</a> algorithm. If that doesn't
return a <a href=#concept-date title=concept-date>date</a> or a <a href=#concept-datetime title=concept-datetime>global date and time</a>, then the
modification has no associated timestamp (the value is
non-conforming; it is not a <a href=#valid-date-string-with-optional-time>valid date string with optional
time</a>). Otherwise, the modification is marked as having been
made at the given <a href=#concept-date title=concept-date>date</a> or <a href=#concept-datetime title=concept-datetime>global date and time</a>. If the given
value is a <a href=#concept-datetime title=concept-datetime>global date and
time</a> then user agents should use the associated time-zone
offset information to determine which time zone to present the given
datetime in.</p>

</div>

Expand Down Expand Up @@ -57301,6 +57304,14 @@ _:n2 hcard:adr%20street-address "Avenue Q" ;
<p class=note>This value is used below; it is calculated here
because in certain cases the next step mutates the <var title="">cloned article</var>.</p>

<p class=note>Any <code><a href=#the-ins-element>ins</a></code> or <code><a href=#the-del-element>del</a></code>
elements whose <code title=attr-mod-datetime><a href=#attr-mod-datetime>datetime</a></code>
attributes have values that are just <a href=#valid-date-string title="valid date
string">valid date strings</a> (i.e. that have no time
component) are ignored for the purposes of finding the update
time of an entry.</p> <!-- because atom needs a time, as far as
I can tell -->

</li>

<li>
Expand Down Expand Up @@ -86515,8 +86526,8 @@ interface <a href=#htmldocument>HTMLDocument</a> {
<tr><th> <code title="">datetime</code>
<td> <code title=attr-mod-datetime><a href=#attr-mod-datetime>del</a></code>;
<code title=attr-mod-datetime><a href=#attr-mod-datetime>ins</a></code>
<td> Time and date of the change
<td> <a href=#valid-global-date-and-time-string>Valid global date and time string</a>
<td> Date and (optionally) time of the change
<td> <a href=#valid-date-string-with-optional-time>Valid date string with optional time</a>
<tr><th> <code title="">datetime</code>
<td> <code title=attr-time-datetime><a href=#attr-time-datetime>time</a></code>
<td> Value of the element
Expand Down
35 changes: 24 additions & 11 deletions source
Expand Up @@ -21079,20 +21079,25 @@ Sydney&lt;/p&gt;</pre>
attribute may be used to specify the time and date of the change.</p>

<p>If present, the <code title="attr-mod-datetime">datetime</code>
attribute must be a <span>valid global date and time string</span>
value.</p>
attribute's value must be a <span>valid date string with optional
time</span>.</p>

<div class="impl">

<p>User agents must parse the <code
title="attr-mod-datetime">datetime</code> attribute according to the
<span>parse a global date and time string</span> algorithm. If that
doesn't return a time, then the modification has no associated
timestamp (the value is non-conforming; it is not a <span>valid
global date and time string</span>). Otherwise, the modification is
marked as having been made at the given datetime. User agents should
use the associated time-zone offset information to determine which
time zone to present the given datetime in.</p>
<span>parse a date or time string</span> algorithm. If that doesn't
return a <span title="concept-date">date</span> or a <span
title="concept-datetime">global date and time</span>, then the
modification has no associated timestamp (the value is
non-conforming; it is not a <span>valid date string with optional
time</span>). Otherwise, the modification is marked as having been
made at the given <span title="concept-date">date</span> or <span
title="concept-datetime">global date and time</span>. If the given
value is a <span title="concept-datetime">global date and
time</span> then user agents should use the associated time-zone
offset information to determine which time zone to present the given
datetime in.</p>

</div>

Expand Down Expand Up @@ -64724,6 +64729,14 @@ _:n2 hcard:adr%20street-address "Avenue Q" ;
because in certain cases the next step mutates the <var
title="">cloned article</var>.</p>

<p class="note">Any <code>ins</code> or <code>del</code>
elements whose <code title="attr-mod-datetime">datetime</code>
attributes have values that are just <span title="valid date
string">valid date strings</span> (i.e. that have no time
component) are ignored for the purposes of finding the update
time of an entry.</p> <!-- because atom needs a time, as far as
I can tell -->

</li>

<li>
Expand Down Expand Up @@ -106803,8 +106816,8 @@ interface <span>HTMLDocument</span> {
<th> <code title="">datetime</code>
<td> <code title="attr-mod-datetime">del</code>;
<code title="attr-mod-datetime">ins</code>
<td> Time and date of the change
<td> <span>Valid global date and time string</span>
<td> Date and (optionally) time of the change
<td> <span>Valid date string with optional time</span>
<tr>
<th> <code title="">datetime</code>
<td> <code title="attr-time-datetime">time</code>
Expand Down

0 comments on commit 8bc98d5

Please sign in to comment.