HTML5 Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/2981

SVNBugCommentTime (UTC)
2981Make an empty <time> render the attribute value in a locale-specific manner.2009-04-25 06:03
Index: source
===================================================================
--- source	(revision 2980)
+++ source	(revision 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

|