- From: poot <cvsmail@w3.org>
- Date: Tue, 13 Dec 2011 21:00:58 -0500
- To: public-html-diffs@w3.org
microdata; hixie: the <time> element is dead, long live the <time> element (whatwg r6827) http://dev.w3.org/cvsweb/html5/md/Overview.html?r1=1.176&r2=1.177&f=h http://html5.org/tools/web-apps-tracker?from=6826&to=6827 =================================================================== RCS file: /sources/public/html5/md/Overview.html,v retrieving revision 1.176 retrieving revision 1.177 diff -u -d -r1.176 -r1.177 --- Overview.html 2 Nov 2011 17:02:34 -0000 1.176 +++ Overview.html 18 Nov 2011 19:44:09 -0000 1.177 @@ -320,7 +320,7 @@ <h1>HTML Microdata</h1> <h2 class="no-num no-toc" id="generatedID"></h2> - <h2 class="no-num no-toc" id="editor-s-draft-2-november-2011">Editor's Draft 2 November 2011</h2> + <h2 class="no-num no-toc" id="editor-s-draft-18-november-2011">Editor's Draft 18 November 2011</h2> <dl><dt>Latest Published Version:</dt> <dd><a href="http://www.w3.org/TR/microdata/">http://www.w3.org/TR/microdata/</a></dd> <dt>Latest Editor's Draft:</dt> @@ -454,7 +454,7 @@ Group</a> is the W3C working group responsible for this specification's progress along the W3C Recommendation track. - This specification is the 2 November 2011 Editor's Draft. + This specification is the 18 November 2011 Editor's Draft. </p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><p>Work on this specification is also done at the <a href="http://www.whatwg.org/">WHATWG</a>. The W3C HTML working group actively pursues convergence with the WHATWG, as required by the <a href="http://www.w3.org/2007/03/HTML-WG-charter">W3C HTML working group charter</a>.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><p>This specification is an extension to the HTML5 language. All @@ -703,11 +703,23 @@ <code>data</code> element, with the human-readable version given in the element's contents.<div class="example"> + <p>Here, there is an item with a property whose value is a product + ID. The ID is not human-friendly, so the product's name is used + the human-visible text instead of the ID.</p> + + <pre><h1 itemscope> + <data itemprop="product-id" value="9678AOU879">The Instigator 2000</data> +</h1></pre> + + </div><p>For date- and time-related data, the <code>time</code> element + and its <code title="attr-time-datetime">datetime</code> attribute + can be used instead.<div class="example"> + <p>In this example, the item has one property, "birthday", whose value is a date:</p> <pre><div itemscope> - I was born on <data itemprop="birthday" value="2009-05-10">May 10th 2009</data>. + I was born on <time itemprop="birthday" datetime="2009-05-10">May 10th 2009</time>. </div></pre> </div><p>Properties can also themselves be groups of name-value pairs, by @@ -865,7 +877,7 @@ <dt>Author <dd itemprop="author">Peter F. Hamilton <dt>Publication date - <dd><data itemprop="pubdate" value="1996-01-26">26 January 1996</data> + <dd><time itemprop="pubdate" datetime="1996-01-26">26 January 1996</time> </dl></pre> <p>The "<code title="">http://vocab.example.net/book</code>" @@ -1330,6 +1342,12 @@ the empty string otherwise.</dd> + <dt>If the element is a <code>time</code> element</dt> + + <dd><p>The value is the element's <span>datetime + value</span>.</dd> + + <dt>Otherwise</dt> <dd><p>The value is the element's @@ -1615,6 +1633,15 @@ <dd><p>The attribute must act as it would if it was <a href="#reflect" title="reflect">reflecting</a> the element's <code title="attr-data-value">value</code> content attribute.</dd> + <dt>If the element is a <code>time</code> element</dt> + + <dd><p>On getting, if the element has a <code title="attr-time-datetime">datetime</code> content attribute, the + IDL attribute must return that content attribute's value; + otherwise, it must return the element's <code>textContent</code>. + On setting, the IDL attribute must act as it would if it was <a href="#reflect" title="reflect">reflecting</a> the element's <code title="attr-time-datetime">datetime</code> content + attribute.</dd> + + <dt>Otherwise</dt> <dd><p>The attribute must act the same as the element's
Received on Wednesday, 14 December 2011 02:01:01 UTC