Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[e] (0) Splitting out the Microdata spec.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=7542

git-svn-id: http://svn.whatwg.org/webapps@4543 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 8, 2010
1 parent c566923 commit d909c27
Show file tree
Hide file tree
Showing 4 changed files with 3,420 additions and 518 deletions.
57 changes: 48 additions & 9 deletions complete.html
Expand Up @@ -110,7 +110,7 @@

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<hgroup><h1>Web Applications 1.0</h1>
<h2 class="no-num no-toc">Draft Standard &mdash; 7 January 2010</h2>
<h2 class="no-num no-toc">Draft Standard &mdash; 8 January 2010</h2>
</hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
Expand Down Expand Up @@ -1838,6 +1838,7 @@ <h3 id=recommended-reading><span class=secno>1.9 </span>Recommended reading</h3>

</dl><h2 id=infrastructure><span class=secno>2 </span>Common infrastructure</h2>


<h3 id=terminology><span class=secno>2.1 </span>Terminology</h3>

<p>This specification refers to both HTML and XML attributes and IDL
Expand Down Expand Up @@ -6085,6 +6086,7 @@ <h5 id=htmlpropertiescollection-0><span class=secno>2.7.2.5 </span>HTMLPropertie
</div>



<h4 id=domtokenlist-0><span class=secno>2.7.3 </span>DOMTokenList</h4>

<p>The <code><a href=#domtokenlist>DOMTokenList</a></code> interface represents an interface
Expand Down Expand Up @@ -6656,6 +6658,7 @@ <h4 id=documents-in-the-dom><span class=secno>3.1.1 </span>Documents in the DOM<
readonly attribute DOMString <a href=#dom-document-readystate title=dom-document-readyState>readyState</a>;

// <a href=#dom-tree-accessors>DOM tree accessors</a>
<a href=#dom-document-nameditem title=dom-document-namedItem>getter</a> any (in DOMString name);
attribute DOMString <a href=#document.title title=dom-document-title>title</a>;
attribute DOMString <a href=#dom-document-dir title=dom-document-dir>dir</a>;
attribute <a href=#htmlelement>HTMLElement</a> <a href=#dom-document-body title=dom-document-body>body</a>;
Expand All @@ -6668,8 +6671,8 @@ <h4 id=documents-in-the-dom><span class=secno>3.1.1 </span>Documents in the DOM<
readonly attribute <a href=#htmlcollection>HTMLCollection</a> <a href=#dom-document-scripts title=dom-document-scripts>scripts</a>;
NodeList <a href=#dom-document-getelementsbyname title=dom-document-getElementsByName>getElementsByName</a>(in DOMString elementName);
NodeList <a href=#dom-document-getelementsbyclassname title=dom-document-getElementsByClassName>getElementsByClassName</a>(in DOMString classNames);
NodeList <a href=#dom-document-getitems title=dom-document-getItems>getItems</a>(in optional DOMString typeNames);
<a href=#dom-document-nameditem title=dom-document-namedItem>getter</a> any (in DOMString name);
NodeList <a href=#dom-document-getitems title=dom-document-getItems>getItems</a>(in optional DOMString typeNames); // <a href=#microdata>microdata</a> <!--WARNING: ALSO DUPLICATED IN MICRODATA SECTION-->


// <a href=#dynamic-markup-insertion>dynamic markup insertion</a>
attribute DOMString <a href=#dom-innerhtml title=dom-innerHTML>innerHTML</a>;
Expand Down Expand Up @@ -7600,7 +7603,7 @@ <h4 id=elements-in-the-dom><span class=secno>3.2.2 </span>Elements in the DOM</h
readonly attribute <a href=#domtokenlist>DOMTokenList</a> <a href=#dom-classlist title=dom-classList>classList</a>;
readonly attribute <a href=#domstringmap>DOMStringMap</a> <a href=#dom-dataset title=dom-dataset>dataset</a>;

// <a href=#microdata>microdata</a>
// <a href=#microdata>microdata</a> <!--WARNING: ALSO DUPLICATED IN MICRODATA SECTION-->
attribute boolean <a href=#dom-itemscope title=dom-itemScope>itemScope</a>;
attribute DOMString <a href=#dom-itemtype title=dom-itemType>itemType</a>;
attribute DOMString <a href=#dom-itemid title=dom-itemId>itemId</a>;
Expand Down Expand Up @@ -7724,11 +7727,13 @@ <h4 id=global-attributes><span class=secno>3.2.3 </span><dfn>Global attributes</
<li><code title=attr-draggable><a href=#the-draggable-attribute>draggable</a></code></li>
<li><code title=attr-hidden><a href=#the-hidden-attribute>hidden</a></code></li>
<li><code title=attr-id><a href=#the-id-attribute>id</a></code></li>
<!--WARNING: ALSO DUPLICATED IN MICRODATA SECTION -->
<li><code title=attr-itemid><a href=#attr-itemid>itemid</a></code></li>
<li><code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code></li>
<li><code title=attr-itemref><a href=#attr-itemref>itemref</a></code></li>
<li><code title=attr-itemscope><a href=#attr-itemscope>itemscope</a></code></li>
<li><code title=attr-itemtype><a href=#attr-itemtype>itemtype</a></code></li>

<li><code title=attr-lang><a href=#attr-lang>lang</a></code></li>
<li><code title=attr-spellcheck><a href=#attr-spellcheck>spellcheck</a></code></li>
<li><code title=attr-style><a href=#the-style-attribute>style</a></code></li>
Expand Down Expand Up @@ -8590,12 +8595,16 @@ <h6 id=flow-content-0><span class=secno>3.2.5.1.2 </span>Flow content</h6>
<li><code><a href=#the-kbd-element>kbd</a></code></li>
<li><code><a href=#the-keygen-element>keygen</a></code></li>
<li><code><a href=#the-label-element>label</a></code></li>

<li><code><a href=#the-link-element>link</a></code> (if the <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute is present)</li>

<li><code><a href=#the-map-element>map</a></code></li>
<li><code><a href=#the-mark-element>mark</a></code></li>
<li><code><a href=#math>math</a></code></li>
<li><code><a href=#menus>menu</a></code></li>

<li><code><a href=#meta>meta</a></code> (if the <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute is present)</li>

<li><code><a href=#the-meter-element>meter</a></code></li>
<li><code><a href=#the-nav-element>nav</a></code></li>
<li><code><a href=#the-noscript-element>noscript</a></code></li>
Expand Down Expand Up @@ -8703,11 +8712,15 @@ <h6 id=heading-content-0><span class=secno>3.2.5.1.4 </span>Heading content</h6>
<li><code><a href=#the-kbd-element>kbd</a></code></li>
<li><code><a href=#the-keygen-element>keygen</a></code></li>
<li><code><a href=#the-label-element>label</a></code></li>

<li><code><a href=#the-link-element>link</a></code> (if the <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute is present)</li>

<li><code><a href=#the-map-element>map</a></code> (if it contains only <a href=#phrasing-content>phrasing content</a>)</li>
<li><code><a href=#the-mark-element>mark</a></code></li>
<li><code><a href=#math>math</a></code></li>

<li><code><a href=#meta>meta</a></code> (if the <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute is present)</li>

<li><code><a href=#the-meter-element>meter</a></code></li>
<li><code><a href=#the-noscript-element>noscript</a></code></li>
<li><code><a href=#the-object-element>object</a></code></li>
Expand Down Expand Up @@ -10658,12 +10671,16 @@ <h4 id=the-link-element><span class=secno>4.2.4 </span>The <dfn><code>link</code

<dl class=element><dt>Categories</dt>
<dd><a href=#metadata-content>Metadata content</a>.</dd>

<dd>If the <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute is present: <a href=#flow-content>flow content</a>.</dd>
<dd>If the <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute is present: <a href=#phrasing-content>phrasing content</a>.</dd>

<dt>Contexts in which this element may be used:</dt>
<dd>Where <a href=#metadata-content>metadata content</a> is expected.</dd>
<dd>In a <code><a href=#the-noscript-element>noscript</a></code> element that is a child of a <code><a href=#the-head-element-0>head</a></code> element.</dd>

<dd>If the <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute is present: where <a href=#phrasing-content>phrasing content</a> is expected.</dd>

<dt>Content model:</dt>
<dd>Empty.</dd>
<dt>Content attributes:</dt>
Expand Down Expand Up @@ -10697,6 +10714,7 @@ <h4 id=the-link-element><span class=secno>4.2.4 </span>The <dfn><code>link</code
attribute is absent, then the element does not define a
link.</span></p>


<p>A <code><a href=#the-link-element>link</a></code> element must have either a <code title=attr-link-rel><a href=#attr-link-rel>rel</a></code> attribute, or an <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute, or both.</p>

<p>The types of link indicated (the relationships) are given by the
Expand Down Expand Up @@ -11016,15 +11034,19 @@ <h4 id=meta><span class=secno>4.2.5 </span>The <dfn><code>meta</code></dfn> elem

<dl class=element><dt>Categories</dt>
<dd><a href=#metadata-content>Metadata content</a>.</dd>

<dd>If the <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute is present: <a href=#flow-content>flow content</a>.</dd>
<dd>If the <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute is present: <a href=#phrasing-content>phrasing content</a>.</dd>

<dt>Contexts in which this element may be used:</dt>
<dd>If the <code title=attr-meta-charset><a href=#attr-meta-charset>charset</a></code> attribute is present, or if the element's <code title=attr-meta-http-equiv><a href=#attr-meta-http-equiv>http-equiv</a></code> attribute is in the <a href=#attr-meta-http-equiv-content-type title=attr-meta-http-equiv-content-type>Encoding declaration state</a>: in a <code><a href=#the-head-element-0>head</a></code> element.</dd>
<dd>If the <code title=attr-meta-http-equiv><a href=#attr-meta-http-equiv>http-equiv</a></code> attribute is present but not in the <a href=#attr-meta-http-equiv-content-type title=attr-meta-http-equiv-content-type>Encoding declaration state</a>: in a <code><a href=#the-head-element-0>head</a></code> element.</dd>
<dd>If the <code title=attr-meta-http-equiv><a href=#attr-meta-http-equiv>http-equiv</a></code> attribute is present but not in the <a href=#attr-meta-http-equiv-content-type title=attr-meta-http-equiv-content-type>Encoding declaration state</a>: in a <code><a href=#the-noscript-element>noscript</a></code> element that is a child of a <code><a href=#the-head-element-0>head</a></code> element.</dd>
<dd>If the <code title=attr-meta-name><a href=#attr-meta-name>name</a></code> attribute is present: where <a href=#metadata-content>metadata content</a> is expected.</dd>

<dd>If the <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute is present: where <a href=#metadata-content>metadata content</a> is expected.</dd>
<dd>If the <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute is present: where <a href=#phrasing-content>phrasing content</a> is expected.</dd>

<dt>Content model:</dt>
<dd>Empty.</dd>
<dt>Content attributes:</dt>
Expand Down Expand Up @@ -11053,6 +11075,7 @@ <h4 id=meta><span class=secno>4.2.5 </span>The <dfn><code>meta</code></dfn> elem
document is serialized to string form (e.g. for transmission over
the network or for disk storage) with the <code title=attr-meta-charset><a href=#attr-meta-charset>charset</a></code> attribute.</p>


<p>Exactly one of the <code title=attr-meta-name><a href=#attr-meta-name>name</a></code>,
<code title=attr-meta-http-equiv><a href=#attr-meta-http-equiv>http-equiv</a></code>, <code title=attr-meta-charset><a href=#attr-meta-charset>charset</a></code>, and <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attributes must be
specified.</p>
Expand Down Expand Up @@ -44601,6 +44624,7 @@ <h2 id=microdata><span class=secno>5 </span><dfn>Microdata</dfn></h2>

-->


<h3 id=introduction-1><span class=secno>5.1 </span>Introduction</h3>

<h4 id=overview><span class=secno>5.1.1 </span>Overview</h4>
Expand All @@ -44620,7 +44644,6 @@ <h4 id=overview><span class=secno>5.1.1 </span>Overview</h4>




<h4 id=the-basic-syntax><span class=secno>5.1.2 </span>The basic syntax</h4>

<p><i>This section is non-normative.</i></p>
Expand Down Expand Up @@ -45119,9 +45142,10 @@ <h4 id=using-the-microdata-dom-api><span class=secno>5.1.6 </span>Using the micr
</div>



<h3 id=encoding-microdata><span class=secno>5.2 </span>Encoding microdata</h3>



<h4 id=the-microdata-model><span class=secno>5.2.1 </span>The microdata model</h4>

<p>The microdata model consists of groups of name-value pairs known
Expand Down Expand Up @@ -45510,6 +45534,7 @@ <h4 id=examples-1><span class=secno>5.2.6 </span>Examples</h4>

<h3 id=microdata-dom-api><span class=secno>5.3 </span>Microdata DOM API</h3>


<dl class=domintro><dt><var title="">document</var> . <code title=dom-document-getItems><a href=#dom-document-getitems>getItems</a></code>( [ <var title="">types</var> ] )</dt>

<dd>
Expand Down Expand Up @@ -45639,8 +45664,6 @@ <h3 id=microdata-dom-api><span class=secno>5.3 </span>Microdata DOM API</h3>
</div>




<h3 id=microdata-vocabularies><span class=secno>5.4 </span>Microdata vocabularies</h3>


Expand Down Expand Up @@ -48319,6 +48342,9 @@ <h5 id=examples-4><span class=secno>5.4.3.2 </span>Examples</h5>

<h3 id=converting-html-to-other-formats><span class=secno>5.5 </span>Converting HTML to other formats</h3>




<h4 id=json><span class=secno>5.5.1 </span>JSON</h4>

<p>Given a list of nodes <var title="">nodes</var> in a
Expand Down Expand Up @@ -49074,9 +49100,11 @@ <h4 id=json><span class=secno>5.5.1 </span>JSON</h4>

<p>The <dfn id=atom-namespace>Atom namespace</dfn> is: <code>http://www.w3.org/2005/Atom</code></p>

</div>


</div>




<h2 id=browsers><span class=secno>6 </span>Web browsers</h2>
Expand Down Expand Up @@ -61268,6 +61296,8 @@ <h4 id=drag-and-drop-processing-model><span class=secno>8.9.4 </span>Drag-and-dr

</li>



<li>

<p>The user agent must take the <a href=#list-of-dragged-nodes>list of dragged nodes</a>
Expand All @@ -61278,6 +61308,7 @@ <h4 id=drag-and-drop-processing-model><span class=secno>8.9.4 </span>Drag-and-dr

</li>


<!-- v2: deal with multiple vCards -->
<!--
<li>
Expand Down Expand Up @@ -83326,10 +83357,13 @@ <h4 id=other-elements,-attributes-and-apis><span class=secno>14.3.4 </span>Other




<h2 id=iana><span class=secno>15 </span>IANA considerations</h2>

<!-- http://www.w3.org/2002/06/registering-mediatype.html -->



<h3 id=text/html><span class=secno>15.1 </span><dfn><code>text/html</code></dfn></h3>

<p>This registration is for community review and will be submitted
Expand Down Expand Up @@ -83640,8 +83674,10 @@ <h3 id=text/ping><span class=secno>15.4 </span><dfn><code>text/ping</code></dfn>
<code><a href=#text/ping>text/ping</a></code> resources.</p>



<h3 id=application/microdata+json><span class=secno>15.5 </span><dfn><code>application/microdata+json</code></dfn></h3>


<p>This registration is for community review and will be submitted
to the IESG for review, approval, and registration with IANA.</p>

Expand Down Expand Up @@ -83706,6 +83742,7 @@ <h3 id=application/microdata+json><span class=secno>15.5 </span><dfn><code>appli
semantics as when used with <code>application/json</code>. <a href=#refsJSON>[JSON]</a></p>



<h3 id=ping-from><span class=secno>15.6 </span><dfn title=http-ping-from><code>Ping-From</code></dfn></h3>

<p>This section describes a header field for registration in the
Expand Down Expand Up @@ -85101,6 +85138,7 @@ <h3 class=no-num id=attributes-0>Attributes</h3>
<td> <code title=attr-img-ismap><a href=#attr-img-ismap>img</a></code>
<td> Whether the image is a server-side image map
<td> <a href=#boolean-attribute>Boolean attribute</a>

<tr><th> <code title="">itemid</code>
<td> <a href=#attr-itemid title=attr-itemid>HTML elements</a>
<td> <a href=#global-identifier>Global identifier</a> for a microdata item
Expand All @@ -85121,6 +85159,7 @@ <h3 class=no-num id=attributes-0>Attributes</h3>
<td> <a href=#attr-itemtype title=attr-itemtype>HTML elements</a>
<td> <a href=#item-type>Item type</a> of a microdata item
<td> <a href=#absolute-url title="absolute url">Valid absolute URL</a>*

<tr><th> <code title="">keytype</code>
<td> <code title=attr-keygen-keytype><a href=#attr-keygen-keytype>keygen</a></code>
<td> The type of cryptographic key to generate
Expand Down

0 comments on commit d909c27

Please sign in to comment.