Skip to content
Permalink
Browse files

[acgiow] (0) Make the year-only format for <time> more in line with h…

…ow it works elsewhere.

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=17926
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@7435 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 5, 2012
1 parent 7364c6f commit 965220b70ed9b89efff7640cda535a39b3b6d5b5
Showing with 15 additions and 6 deletions.
  1. +5 −2 complete.html
  2. +5 −2 index
  3. +5 −2 source
</dd>


<dt>A <a href=#valid-non-negative-integer>valid non-negative integer</a> representing a year</dt>
<dt>Four or more <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, at least one of which is not U+0030 DIGIT ZERO (0)</dt>

<dd>

<pre class=example>&lt;time&gt;2011&lt;/time&gt;</pre>

<pre class=example>&lt;time&gt;0001&lt;/time&gt;</pre>

</dd>



<li><p>If the element's <a href=#datetime-value>datetime value</a> consists of
only characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT
NINE (9), then the machine-readable equivalent is the base-ten
NINE (9), at least one of which is not U+0030 DIGIT ZERO (0),
then the machine-readable equivalent is the base-ten
interpretation of those digits, representing a year; abort these
steps.</li>

7 index
</dd>


<dt>A <a href=#valid-non-negative-integer>valid non-negative integer</a> representing a year</dt>
<dt>Four or more <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, at least one of which is not U+0030 DIGIT ZERO (0)</dt>

<dd>

<pre class=example>&lt;time&gt;2011&lt;/time&gt;</pre>

<pre class=example>&lt;time&gt;0001&lt;/time&gt;</pre>

</dd>



<li><p>If the element's <a href=#datetime-value>datetime value</a> consists of
only characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT
NINE (9), then the machine-readable equivalent is the base-ten
NINE (9), at least one of which is not U+0030 DIGIT ZERO (0),
then the machine-readable equivalent is the base-ten
interpretation of those digits, representing a year; abort these
steps.</li>

7 source
</dd>


<dt>A <span>valid non-negative integer</span> representing a year</dt>
<dt>Four or more <span title="concept-datetime-digit">digits</span>, at least one of which is not U+0030 DIGIT ZERO (0)</dt>

<dd>

<pre class="example">&lt;time>2011&lt;/time></pre>

<pre class="example">&lt;time>0001&lt;/time></pre>

</dd>



<li><p>If the element's <span>datetime value</span> consists of
only characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT
NINE (9), then the machine-readable equivalent is the base-ten
NINE (9), at least one of which is not U+0030 DIGIT ZERO (0),
then the machine-readable equivalent is the base-ten
interpretation of those digits, representing a year; abort these
steps.</p></li>

0 comments on commit 965220b

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