[html5] r2981 - [] (0) Make an empty <time> render the attribute value in a locale-specific manner.

whatwg at whatwg.org whatwg at whatwg.org
Fri Apr 24 23:03:54 PDT 2009


Author: ianh
Date: 2009-04-24 23:03:53 -0700 (Fri, 24 Apr 2009)
New Revision: 2981

Modified:
   index
   source
Log:
[] (0) Make an empty <time> render the attribute value in a locale-specific manner.

Modified: index
===================================================================
--- index	2009-04-25 01:35:44 UTC (rev 2980)
+++ index	2009-04-25 06:03:53 UTC (rev 2981)
@@ -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>
@@ -14690,6 +14691,11 @@
   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
@@ -62833,6 +62839,20 @@
 
 
 
+  <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

Modified: source
===================================================================
--- source	2009-04-25 01:35:44 UTC (rev 2980)
+++ source	2009-04-25 06:03:53 UTC (rev 2981)
@@ -15731,6 +15731,11 @@
   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
@@ -73799,6 +73804,23 @@
 
 
 
+  <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




More information about the Commit-Watchers mailing list