Permalink
Browse files

[] (0) Make an empty <time> render the attribute value in a locale-sp…

…ecific manner.

git-svn-id: http://svn.whatwg.org/webapps@2981 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Apr 25, 2009
1 parent 6dedc6c commit 97ef4ac3345671588897b4f4bb08eaff90a39c07
Showing with 43 additions and 1 deletion.
  1. +21 −1 index
  2. +22 −0 source
22 index
@@ -1010,7 +1010,8 @@
<li><a href=#the-progress-element-0><span class=secno>10.4.15 </span>The <code>progress</code> element</a></li>
<li><a href=#the-select-element-0><span class=secno>10.4.16 </span>The <code>select</code> element</a></li>
<li><a href=#the-textarea-element-0><span class=secno>10.4.17 </span>The <code>textarea</code> element</a></li>
<li><a href=#the-keygen-element-0><span class=secno>10.4.18 </span>The <code>keygen</code> element</a></ol></li>
<li><a href=#the-keygen-element-0><span class=secno>10.4.18 </span>The <code>keygen</code> element</a></li>
<li><a href=#the-time-element-0><span class=secno>10.4.19 </span>The <code>time</code> element</a></ol></li>
<li><a href=#frames-and-framesets><span class=secno>10.5 </span>Frames and framesets</a></li>
<li><a href=#interactive-media><span class=secno>10.6 </span>Interactive media</a>
<ol>
content</a>, and the date, if any, must be expressed using the
Gregorian calendar.</p>

<p>If the <code title=attr-time-datetime><a href=#attr-time-datetime>datetime</a></code> attribute
is present, then the element may be empty, in which case the user
agent should convey the attribute's value to the user when rendering
the element.</p>

<div class=example>

<p>The <code><a href=#the-time-element>time</a></code> element can be used to encode dates, for



<h4 id=the-time-element-0><span class=secno>10.4.19 </span>The <code><a href=#the-time-element>time</a></code> element</h4>

<pre class=css>@namespace url(http://www.w3.org/1999/xhtml);

time:empty { binding: <i title="">time</i>; }</pre>

<p>When the <i title="">time</i> binding applies to a
<code><a href=#the-time-element>time</a></code> element, the element is expected to render as if
it contained text conveying the <a href=#concept-time-date title=concept-time-date>date</a> (if known), <a href=#concept-time-time title=concept-time-time>time</a> (if known), and <a href=#concept-time-timezone title=concept-time-timezone>time zone</a> (if known)
represented by the element, in the fashion most convenient for the
user.</p>



<h3 id=frames-and-framesets><span class=secno>10.5 </span>Frames and framesets</h3>

<p>When an <code><a href=#the-html-element>html</a></code> element's second child element is a
22 source
content</span>, and the date, if any, must be expressed using the
Gregorian calendar.</p>

<p>If the <code title="attr-time-datetime">datetime</code> attribute
is present, then the element may be empty, in which case the user
agent should convey the attribute's value to the user when rendering
the element.</p>

<div class="example">

<p>The <code>time</code> element can be used to encode dates, for



<h4>The <code>time</code> element</h4>

<pre class="css">@namespace url(http://www.w3.org/1999/xhtml);

time:empty { binding: <i title="">time</i>; }</pre>

<p>When the <i title="">time</i> binding applies to a
<code>time</code> element, the element is expected to render as if
it contained text conveying the <span
title="concept-time-date">date</span> (if known), <span
title="concept-time-time">time</span> (if known), and <span
title="concept-time-timezone">time zone</span> (if known)
represented by the element, in the fashion most convenient for the
user.</p>



<h3>Frames and framesets</h3>

<p>When an <code>html</code> element's second child element is a

0 comments on commit 97ef4ac

Please sign in to comment.