Skip to content

Commit

Permalink
[t] (0) Describe the model expected of processors that would allow vC…
Browse files Browse the repository at this point in the history
…ard, iCalendar, BibTeX, etc, extraction.

git-svn-id: http://svn.whatwg.org/webapps@3107 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 16, 2009
1 parent eb6a491 commit 5d5c95a
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 1 deletion.
28 changes: 27 additions & 1 deletion index
Original file line number Diff line number Diff line change
Expand Up @@ -43879,8 +43879,34 @@ document.body.appendChild(outer);</pre>
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
Expand Down
34 changes: 34 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -49653,6 +49653,40 @@ document.body.appendChild(outer);</pre>
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>

Expand Down

0 comments on commit 5d5c95a

Please sign in to comment.