Skip to content
Permalink
Browse files

[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 8bc98d5fd96f75a6759302fe63edb53fee3537e7
Showing with 68 additions and 33 deletions.
  1. +22 −11 complete.html
  2. +22 −11 index
  3. +24 −11 source
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>

<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>
<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
33 index
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>

<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>
<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
35 source
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>

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>
<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>

0 comments on commit 8bc98d5

Please sign in to comment.
You can’t perform that action at this time.