HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2981Make an empty <time> render the attribute value in a locale-specific manner.2009-04-25 06:03
@@ -15724,20 +15724,25 @@ this specification: the &lt;abbr>WHATWG&lt;/abbr> and the
   attribute, if present, must contain a <span>valid date or time
   string</span> that identifies the date or time being specified.</p>
 
   <p>If the <code title="attr-time-datetime">datetime</code> attribute
   is not present, then the date or time must be specified in the
   content of the element, such that the element's
   <code>textContent</code> is a <span>valid date or time string in
   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
    example in Microformats. The following shows a hypothetical way of
    encoding an event using a variant on hCalendar that uses the
    <code>time</code> element:</p>
 
    <pre>&lt;div class="vevent">
  &lt;a class="url" href="http://www.web2con.com/">http://www.web2con.com/&lt;/a>
   &lt;span class="summary">Web 2.0 Conference&lt;/span>:
@@ -73792,20 +73797,37 @@ textarea { binding: <i title="">textarea</i>; }</pre>
 
 keygen { binding: <i title="">keygen</i>; }</pre>
 
   <p>When the <i title="">keygen</i> binding applies to a
   <code>keygen</code> element, the element is expected to render as an
   'inline-block' box containing a user interface to configure the key
   pair to be generated.</p>
 
 
 
+  <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
   <code>frameset</code> element, the user agent is expected to render
   the <code>frameset</code> element as described below across the
   surface of the <span>view</span>, instead of applying the usual CSS
   rendering rules.</p>
 
   <p>When rendering a <code>frameset</code> on a surface, the user
   agent is expected to use the following layout algorithm:</p>

|