[html5] r3107 - [t] (0) Describe the model expected of processors that would allow vCard, iCalen [...]

whatwg at whatwg.org whatwg at whatwg.org
Sat May 16 03:10:00 PDT 2009


Author: ianh
Date: 2009-05-16 03:09:59 -0700 (Sat, 16 May 2009)
New Revision: 3107

Modified:
   index
   source
Log:
[t] (0) Describe the model expected of processors that would allow vCard, iCalendar, BibTeX, etc, extraction.

Modified: index
===================================================================
--- index	2009-05-16 02:18:00 UTC (rev 3106)
+++ index	2009-05-16 10:09:59 UTC (rev 3107)
@@ -43879,9 +43879,35 @@
   iterate over a series of elements (whether items, properties, or
   otherwise) must do so in <a href=#tree-order>tree order</a>.</p>
 
+  <p>A generic API upon which the vocaulary-specific conversions
+  defined below (vCard, iCalendar, BibTeX) can be built will need to
+  provide the following information when given a <code>Document</code>
+  (or equivalent):</p>
 
-  <h4 id=json><span class=secno>5.5.1 </span>JSON</h4>
+  <ul><li><a href="#the-document's-current-address">The document's current address</a>.</li>
 
+   <li>The <code><a href=#textcontent>textContent</a></code> of <a href=#the-title-element-0>the <code>title</code>
+   element</a>, if any.</li>
+
+   <li>The list of <a href=#top-level-microdata-items>top-level microdata items</a>.</li>
+
+   <li>For each <a href=#concept-item title=concept-item>item</a>, the list of
+   properties that have that <a href=#concept-item title=concept-item>item</a> as
+   their <a href=#concept-item-corresponding title=concept-item-corresponding>corresponding
+   item</a>.</li>
+
+   <li>For each property, its <a href=#property-names title="property
+   names">name</a>.</li>
+
+   <li>For each property, its <a href=#concept-property-value title=concept-property-value>value</a> (which might be a
+   further <a href=#concept-item title=concept-item>item</a>).</li>
+
+   <li>For each property, if its <a href=#concept-property-value title=concept-property-value>value</a> is not itself an <a href=#concept-item title=concept-item>item</a>, whether the element is a
+   <code><a href=#the-time-element>time</a></code> element, a <a href=#url-property-elements title="URL property
+   elements">URL property element</a>, or another element.</li>
+
+  </ul><h4 id=json><span class=secno>5.5.1 </span>JSON</h4>
+
   <p>Given a node <var title="">node</var> in a <code>Document</code>,
   a user agent must run the following algorithm to extract that node's
   microdata into a JSON form:</p>

Modified: source
===================================================================
--- source	2009-05-16 02:18:00 UTC (rev 3106)
+++ source	2009-05-16 10:09:59 UTC (rev 3107)
@@ -49653,7 +49653,41 @@
   iterate over a series of elements (whether items, properties, or
   otherwise) must do so in <span>tree order</span>.</p>
 
+  <p>A generic API upon which the vocaulary-specific conversions
+  defined below (vCard, iCalendar, BibTeX) can be built will need to
+  provide the following information when given a <code>Document</code>
+  (or equivalent):</p>
 
+  <ul>
+
+   <li><span>The document's current address</span>.</li>
+
+   <li>The <code>textContent</code> of <span>the <code>title</code>
+   element</span>, if any.</li>
+
+   <li>The list of <span>top-level microdata items</span>.</li>
+
+   <li>For each <span title="concept-item">item</span>, the list of
+   properties that have that <span title="concept-item">item</span> as
+   their <span title="concept-item-corresponding">corresponding
+   item</span>.</li>
+
+   <li>For each property, its <span title="property
+   names">name</span>.</li>
+
+   <li>For each property, its <span
+   title="concept-property-value">value</span> (which might be a
+   further <span title="concept-item">item</span>).</li>
+
+   <li>For each property, if its <span
+   title="concept-property-value">value</span> is not itself an <span
+   title="concept-item">item</span>, whether the element is a
+   <code>time</code> element, a <span title="URL property
+   elements">URL property element</span>, or another element.</li>
+
+  </ul>
+
+
   <h4>JSON</h4>
 
   <p>Given a node <var title="">node</var> in a <code>Document</code>,




More information about the Commit-Watchers mailing list