Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 965220b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
7 changes: 5 additions & 2 deletions complete.html
Expand Up @@ -22275,12 +22275,14 @@ <h4 id=the-time-element><span class=secno>4.6.11 </span>The <dfn><code>time</cod
</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>


Expand Down Expand Up @@ -22343,7 +22345,8 @@ <h4 id=the-time-element><span class=secno>4.6.11 </span>The <dfn><code>time</cod

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

Expand Down
7 changes: 5 additions & 2 deletions index
Expand Up @@ -22275,12 +22275,14 @@ this specification: the &lt;abbr&gt;WHATWG&lt;/abbr&gt; and the
</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>


Expand Down Expand Up @@ -22343,7 +22345,8 @@ this specification: the &lt;abbr&gt;WHATWG&lt;/abbr&gt; and the

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

Expand Down
7 changes: 5 additions & 2 deletions source
Expand Up @@ -23892,12 +23892,14 @@ this specification: the &lt;abbr>WHATWG&lt;/abbr> and the
</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>


Expand Down Expand Up @@ -23967,7 +23969,8 @@ this specification: the &lt;abbr>WHATWG&lt;/abbr> and the

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

Expand Down

0 comments on commit 965220b

Please sign in to comment.