Browse files

[] (0) Split out the microdata vocabularies into their own specs

git-svn-id: http://svn.whatwg.org/webapps@4070 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent 4dd68ef commit 3fce0453ba569ffb436ff4526de099c8d36e5818 @Hixie Hixie committed Oct 4, 2009
Showing with 2,915 additions and 38 deletions.
  1. +4 −2 index
  2. +85 −36 source
  3. +2,826 −0 vocabs-index
View
6 index
@@ -73507,9 +73507,11 @@ interface <a href=#htmldocument>HTMLDocument</a> {
<tr><td> <code title=event-load>load</code>
<td> The element or page has finished loading
<tr><td class=XXX colspan=2> ...
- </table><h2 class=no-num id=references>References</h2><!--REFS-->
+ </table><!--START vCard--><!--START vEvent--><h2 class=no-num id=references>References</h2><!--REFS-->
+<!--END vCard--><!--END vEvent-->
<p>All references are normative unless marked "Non-normative".</p>
+<!--START vCard--><!--START vEvent-->
<dl><dt id=refsABNF>[ABNF]</dt>
<dd><cite><a href=http://www.ietf.org/rfc/std/std68.txt>Augmented
@@ -74099,7 +74101,7 @@ interface <a href=#htmldocument>HTMLDocument</a> {
Transformations (XSLT) Version 1.0</a></cite>, J. Clark. W3C,
November 1999.</dd>
- </dl><h2 class=no-num id=acknowledgements>Acknowledgements</h2> <!-- ACKS -->
+ </dl><!--END vCard--><!--END vEvent--><h2 class=no-num id=acknowledgements>Acknowledgements</h2> <!-- ACKS -->
<p>Thanks to
View
121 source
@@ -50134,10 +50134,32 @@ document.body.appendChild(outer);</pre>
<!--START vocabs-->
+ <h3 class="no-num no-toc">Table of contents</h3>
+ <!--toc-->
+ <hr>
+
+ <h4>Introduction</h4>
+
+ <p>This specification defines microdata vocabularies. <a
+ href="#refsHTML5">[HTML5]</a></p>
+
+
<h4>vCard</h4>
+<!--END vocabs-->
<!--START vCard-->
+ <h4 class="no-num no-toc">Table of contents</h4>
+ <!--toc-->
+ <hr>
+
+ <h5>The vocabulary</h5>
+
+ <p>This section defines a microdata vocabulary. <a
+ href="#refsHTML5">[HTML5]</a></p>
+
+<!--START vocabs-->
+
<p>An item with the <span>item type</span> <dfn
title="md-vcard"><code>http://microformats.org/profile/hcard</code></dfn>
represents a person's or organization's contact information.</p>
@@ -52378,10 +52400,22 @@ END:VCARD</pre>
<h4>vEvent</h4>
+<!--END vocabs-->
<!--START vEvent-->
+ <h4 class="no-num no-toc">Table of contents</h4>
+ <!--toc-->
+ <hr>
+
+ <h5>The vocabulary</h5>
+
+ <p>This section defines a microdata vocabulary. <a
+ href="#refsHTML5">[HTML5]</a></p>
+
+<!--START vocabs-->
+
<p>An item with the <span>item type</span> <dfn
- title="md-vevent"><code>http://microformats.org/profile/hcalendar</code></dfn>
+ title="md-vevent"><code>http://microformats.org/profile/hcalendar#vevent</code></dfn>
represents an event.</p>
<p>The following are the type's <span title="defined property
@@ -52409,7 +52443,7 @@ END:VCARD</pre>
<p>Any number of properties with the name <code
title="md-vevent-attach">attach</code> may be present within each
<span title="concept-item">item</span> with the type <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>.</p>
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>.</p>
</dd>
@@ -52427,7 +52461,7 @@ END:VCARD</pre>
<p>Any number of properties with the name <code
title="md-vevent-categories">categories</code> may be present
within each <span title="concept-item">item</span> with the type
- <code title="md-vevent">http://microformats.org/profile/hcalendar</code>.</p>
+ <code title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>.</p>
</dd>
@@ -52454,7 +52488,7 @@ END:VCARD</pre>
<p>A single property with the name <code
title="md-vevent-class">class</code> may be present within each
<span title="concept-item">item</span> with the type <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>.</p>
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>.</p>
</dd>
@@ -52471,7 +52505,7 @@ END:VCARD</pre>
<p>Any number of properties with the name <code
title="md-vevent-comment">comment</code> may be present within each
<span title="concept-item">item</span> with the type <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>.</p>
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>.</p>
</dd>
@@ -52488,7 +52522,7 @@ END:VCARD</pre>
<p>A single property with the name <code
title="md-vevent-description">description</code> may be present
within each <span title="concept-item">item</span> with the type
- <code title="md-vevent">http://microformats.org/profile/hcalendar</code>.</p>
+ <code title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>.</p>
</dd>
@@ -52545,7 +52579,7 @@ END:VCARD</pre>
<p>A single property with the name <code
title="md-vevent-geo">geo</code> may be present within each <span
title="concept-item">item</span> with the type <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>.</p>
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>.</p>
</dd>
@@ -52562,7 +52596,7 @@ END:VCARD</pre>
<p>A single property with the name <code
title="md-vevent-location">location</code> may be present within
each <span title="concept-item">item</span> with the type <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>.</p>
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>.</p>
</dd>
@@ -52582,7 +52616,7 @@ END:VCARD</pre>
<p>Any number of properties with the name <code
title="md-vevent-resources">resources</code> may be present within
each <span title="concept-item">item</span> with the type <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>.</p>
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>.</p>
</dd>
@@ -52605,7 +52639,7 @@ END:VCARD</pre>
<p>A single property with the name <code
title="md-vevent-status">status</code> may be present within each
<span title="concept-item">item</span> with the type <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>.</p>
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>.</p>
</dd>
@@ -52626,7 +52660,7 @@ END:VCARD</pre>
<p>A single property with the name <code
title="md-vevent-summary">summary</code> may be present within
each <span title="concept-item">item</span> with the type <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>.</p>
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>.</p>
</dd>
@@ -52640,7 +52674,7 @@ END:VCARD</pre>
<p>If the property with the name <code
title="md-vevent-dtend">dtend</code> is present within an <span
title="concept-item">item</span> with the type <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>
that has a property with the name <code
title="md-vevent-dtstart">dtstart</code> whose value is a
<span>valid date string</span>, then the <span
@@ -52666,9 +52700,9 @@ END:VCARD</pre>
<p>A single property with the name <code
title="md-vevent-dtend">dtend</code> may be present within each
<span title="concept-item">item</span> with the type <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>,
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>,
so long as that <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>
does not have a property with the name <code
title="md-vevent-duration">duration</code>.</p>
@@ -52688,7 +52722,7 @@ END:VCARD</pre>
<p>Exactly one property with the name <code
title="md-vevent-dtstart">dtstart</code> must be present within
each <span title="concept-item">item</span> with the type <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>.</p>
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>.</p>
</dd>
@@ -52708,9 +52742,9 @@ END:VCARD</pre>
<p>A single property with the name <code
title="md-vevent-duration">duration</code> may be present within
each <span title="concept-item">item</span> with the type <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>,
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>,
so long as that <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>
does not have a property with the name <code
title="md-vevent-dtend">dtend</code>.</p>
@@ -52735,7 +52769,7 @@ END:VCARD</pre>
<p>A single property with the name <code
title="md-vevent-transp">transp</code> may be present within each
<span title="concept-item">item</span> with the type <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>.</p>
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>.</p>
</dd>
@@ -52756,7 +52790,7 @@ END:VCARD</pre>
<p>Any number of properties with the name <code
title="md-vevent-contact">contact</code> may be present within
each <span title="concept-item">item</span> with the type <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>.</p>
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>.</p>
</dd>
@@ -52785,7 +52819,7 @@ END:VCARD</pre>
<p>A single property with the name <code
title="md-vevent-url">url</code> may be present within each
<span title="concept-item">item</span> with the type <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>.</p>
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>.</p>
</dd>
@@ -52807,7 +52841,7 @@ END:VCARD</pre>
<p>Any number of properties with the name <code
title="md-vevent-exdate">exdate</code> may be present within
each <span title="concept-item">item</span> with the type <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>.</p>
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>.</p>
</dd>
@@ -52826,7 +52860,7 @@ END:VCARD</pre>
<p>Any number of properties with the name <code
title="md-vevent-exrule">exrule</code> may be present within
each <span title="concept-item">item</span> with the type <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>.</p>
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>.</p>
</dd>
@@ -52859,7 +52893,7 @@ END:VCARD</pre>
<p>Any number of properties with the name <code
title="md-vevent-rdate">rdate</code> may be present within
each <span title="concept-item">item</span> with the type <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>.</p>
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>.</p>
</dd>
@@ -52878,7 +52912,7 @@ END:VCARD</pre>
<p>Any number of properties with the name <code
title="md-vevent-rrule">rrule</code> may be present within
each <span title="concept-item">item</span> with the type <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>.</p>
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>.</p>
</dd>
@@ -52896,7 +52930,7 @@ END:VCARD</pre>
<p>A single property with the name <code
title="md-vevent-created">created</code> may be present within
each <span title="concept-item">item</span> with the type <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>.</p>
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>.</p>
</dd>
@@ -52917,7 +52951,7 @@ END:VCARD</pre>
<p>A single property with the name <code
title="md-vevent-last-modified">last-modified</code> may be present within
each <span title="concept-item">item</span> with the type <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>.</p>
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>.</p>
</dd>
@@ -52934,7 +52968,7 @@ END:VCARD</pre>
<p>A single property with the name <code
title="md-vevent-sequence">sequence</code> may be present within
each <span title="concept-item">item</span> with the type <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>.</p>
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>.</p>
</dd>
@@ -53013,7 +53047,7 @@ END:VCARD</pre>
<li><p>If none of the nodes in <var title="">nodes</var> are <span
title="concept-item">items</span> with the type <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>,
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>,
then there is no vEvent data. Abort the algorithm, returning
nothing.</p></li>
@@ -53037,7 +53071,7 @@ END:VCARD</pre>
<p>For each node <var title="">node</var> in <var
title="">nodes</var> that is an <span
title="concept-item">item</span> with the type <code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>,
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>,
run the following steps:</p>
<ol>
@@ -53241,7 +53275,7 @@ END:VCARD</pre>
<p class="note">This algorithm can generate invalid iCalendar
output, if the input does not conform to the rules described for the
<code
- title="md-vevent">http://microformats.org/profile/hcalendar</code>
+ title="md-vevent">http://microformats.org/profile/hcalendar#vevent</code>
<span>item type</span> and <span title="defined property
name">defined property names</span>.</p> <!-- of course since
iCalendar doesn't define error handling, this is somewhat
@@ -53258,7 +53292,7 @@ END:VCARD</pre>
<p>Here is an example of a page that uses the vEvent vocabulary to
mark up an event:</p>
- <pre>&lt;body item="http://microformats.org/profile/hcalendar">
+ <pre>&lt;body itemscope itemtype="http://microformats.org/profile/hcalendar#vevent">
...
&lt;h1 itemprop="summary">Bluesday Tuesday: Money Road&lt;/h1>
...
@@ -53280,7 +53314,7 @@ END:VCARD</pre>
this:</p>
<pre>function getCalendar(node) {
- while (node && (!node.nodeScope || !node.itemType == 'http://microformats.org/profile/hcalendar'))
+ while (node && (!node.nodeScope || !node.itemType == 'http://microformats.org/profile/hcalendar#vevent'))
node = node.parentNode;
if (!node) {
alert('No event data found.');
@@ -53321,7 +53355,7 @@ END:VCARD</pre>
<p>The same page could offer some markup, such as the following,
for copy-and-pasting into blogs:</p>
- <pre>&lt;div itemscope itemtype="http://microformats.org/profile/hcalendar">
+ <pre>&lt;div itemscope itemtype="http://microformats.org/profile/hcalendar#vevent">
&lt;p>I'm going to
&lt;strong itemprop="summary">Bluesday Tuesday: Money Road&lt;/strong>,
&lt;time itemprop="dtstart" datetime="2009-05-05T19:00:00Z">May 5th at 7pm&lt;/time>
@@ -53338,8 +53372,20 @@ END:VCARD</pre>
<h4>Licensing works</h4>
+<!--END vocabs-->
<!--START work-->
+ <h4 class="no-num no-toc">Table of contents</h4>
+ <!--toc-->
+ <hr>
+
+ <h5>The vocabulary</h5>
+
+ <p>This section defines a microdata vocabulary. <a
+ href="#refsHTML5">[HTML5]</a></p>
+
+<!--START vocabs-->
+
<p>An item with the <span>item type</span> <dfn
title="md-work"><code>http://n.whatwg.org/work</code></dfn>
represents a work (e.g. an article, an image, a video, a song,
@@ -53459,8 +53505,8 @@ END:VCARD</pre>
Alike 3.0 United States License and the MIT license
simultaneously.</p>
- <pre>&lt;figure <strong>item="work"</strong>>
- &lt;dd>&lt;img <strong>itemprop="about"</strong> src="mypond.jpeg">
+ <pre>&lt;figure <strong>itemscope itemtype="http://n.whatwg.org/work"</strong>>
+ &lt;dd>&lt;img <strong>itemprop="work"</strong> src="mypond.jpeg">
&lt;dt>
&lt;p>&lt;cite <strong>itemprop="title"</strong>>My Pond&lt;/cite>&lt;/p>
&lt;p>&lt;small>Licensed under the &lt;a <strong>itemprop="license"</strong>
@@ -90429,11 +90475,13 @@ interface <span>HTMLDocument</span> {
<!--START websocket-api--><!--START storage--><!--START database--><!--START eventsource--><!--START workers-->
-
+<!--START vocabs--><!--START vCard--><!--START vEvent--><!--START work-->
<h2 class="no-num" id="references">References</h2><!--REFS-->
+<!--END vocabs--><!--END vCard--><!--END vEvent--><!--END work-->
<p>All references are normative unless marked "Non-normative".</p>
+<!--START vocabs--><!--START vCard--><!--START vEvent--><!--START work-->
<dl>
<!--REFERENCES ON-->
@@ -91148,6 +91196,7 @@ interface <span>HTMLDocument</span> {
<!--REFERENCES OFF-->
</dl>
+<!--END vocabs--><!--END vCard--><!--END vEvent--><!--END work-->
<!--END websocket-api--><!--END storage--><!--END database--><!--END eventsource--><!--END workers-->
View
2,826 vocabs-index
2,826 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.

0 comments on commit 3fce045

Please sign in to comment.