- From: poot <cvsmail@w3.org>
- Date: Fri, 17 Jun 2011 05:55:33 -0400
- To: public-html-diffs@w3.org
microdata; hixie: allow dependency on HTML again (whatwg r6165) http://dev.w3.org/cvsweb/html5/md/Overview.html?r1=1.132&r2=1.133&f=h http://html5.org/tools/web-apps-tracker?from=6164&to=6165 =================================================================== RCS file: /sources/public/html5/md/Overview.html,v retrieving revision 1.132 retrieving revision 1.133 diff -u -d -r1.132 -r1.133 --- Overview.html 12 May 2011 07:08:37 -0000 1.132 +++ Overview.html 31 May 2011 23:35:35 -0000 1.133 @@ -506,7 +506,10 @@ This specification is the 24 May 2011 Working 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 --><p>This document was produced by a group operating under the <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5 + 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 + normative content in the HTML5 specification, unless specifically + overridden by this specification, is intended to be the basis for + this specification.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><p>This document was produced by a group operating under the <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5 February 2004 W3C Patent Policy</a>. W3C maintains a <a href="http://www.w3.org/2004/01/pp-impl/40318/status" rel="disclosure">public list of any patent disclosures</a> made in connection with the deliverables of the group; that page also includes instructions for disclosing a @@ -515,28 +518,32 @@ Claim(s)</a> must disclose the information in accordance with <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure">section 6 of the W3C Patent Policy</a>.<h2 class="no-num no-toc" id="contents">Table of Contents</h2> <ol class="toc"> - <li><a href="#common-infrastructure"><span class="secno">1 </span>Common infrastructure</a> + <li> <ol> - <li><a href="#conformance-requirements"><span class="secno">1.1 </span>Conformance requirements</a></li> - <li><a href="#htmlpropertiescollection-0"><span class="secno">1.2 </span>HTMLPropertiesCollection</a></ol></li> - <li><a href="#introduction"><span class="secno">2 </span>Introduction</a> + <li><a href="#dependencies"><span class="secno">0.1 </span>Dependencies</a></li> + <li><a href="#terminology"><span class="secno">0.2 </span>Terminology</a></li> + <li><a href="#conformance-requirements"><span class="secno">0.3 </span>Conformance requirements</a></li> + <li><a href="#htmlpropertiescollection-0"><span class="secno">0.4 </span>HTMLPropertiesCollection</a></ol></li> + <li><a href="#introduction"><span class="secno">1 </span>Introduction</a> <ol> - <li><a href="#overview"><span class="secno">2.1 </span>Overview</a></li> - <li><a href="#the-basic-syntax"><span class="secno">2.2 </span>The basic syntax</a></li> - <li><a href="#typed-items"><span class="secno">2.3 </span>Typed items</a></li> - <li><a href="#global-identifiers-for-items"><span class="secno">2.4 </span>Global identifiers for items</a></li> - <li><a href="#selecting-names-when-defining-vocabularies"><span class="secno">2.5 </span>Selecting names when defining vocabularies</a></li> - <li><a href="#using-the-microdata-dom-api"><span class="secno">2.6 </span>Using the microdata DOM API</a></ol></li> - <li><a href="#encoding-microdata"><span class="secno">3 </span>Encoding microdata</a> + <li><a href="#overview"><span class="secno">1.1 </span>Overview</a></li> + <li><a href="#the-basic-syntax"><span class="secno">1.2 </span>The basic syntax</a></li> + <li><a href="#typed-items"><span class="secno">1.3 </span>Typed items</a></li> + <li><a href="#global-identifiers-for-items"><span class="secno">1.4 </span>Global identifiers for items</a></li> + <li><a href="#selecting-names-when-defining-vocabularies"><span class="secno">1.5 </span>Selecting names when defining vocabularies</a></li> + <li><a href="#using-the-microdata-dom-api"><span class="secno">1.6 </span>Using the microdata DOM API</a></ol></li> + <li><a href="#encoding-microdata"><span class="secno">2 </span>Encoding microdata</a> <ol> - <li><a href="#the-microdata-model"><span class="secno">3.1 </span>The microdata model</a></li> - <li><a href="#items"><span class="secno">3.2 </span>Items</a></li> - <li><a href="#names:-the-itemprop-attribute"><span class="secno">3.3 </span>Names: the <code>itemprop</code> attribute</a></li> - <li><a href="#values"><span class="secno">3.4 </span>Values</a></li> - <li><a href="#associating-names-with-items"><span class="secno">3.5 </span>Associating names with items</a></ol></li> - <li><a href="#microdata-dom-api"><span class="secno">4 </span>Microdata DOM API</a> + <li><a href="#the-microdata-model"><span class="secno">2.1 </span>The microdata model</a></li> + <li><a href="#items"><span class="secno">2.2 </span>Items</a></li> + <li><a href="#names:-the-itemprop-attribute"><span class="secno">2.3 </span>Names: the <code>itemprop</code> attribute</a></li> + <li><a href="#values"><span class="secno">2.4 </span>Values</a></li> + <li><a href="#associating-names-with-items"><span class="secno">2.5 </span>Associating names with items</a></ol></li> + <li><a href="#microdata-dom-api"><span class="secno">3 </span>Microdata DOM API</a></li> + <li><a href="#other-changes-to-html5"><span class="secno">4 </span>Other changes to HTML5</a> <ol> - <li><a href="#drag-and-drop"><span class="secno">4.1 </span>Drag-and-drop</a></ol></li> + <li><a href="#content-models"><span class="secno">4.1 </span>Content models</a></li> + <li><a href="#drag-and-drop"><span class="secno">4.2 </span>Drag-and-drop</a></ol></li> <li><a href="#converting-html-to-other-formats"><span class="secno">5 </span>Converting HTML to other formats</a> <ol> <li><a href="#json"><span class="secno">5.1 </span>JSON</a></li> @@ -548,43 +555,34 @@ <li><a href="#application-microdata-json"><span class="secno">6.1 </span><code>application/microdata+json</code></a></ol></li> <li><a class="no-num" href="#references">References</a></li> <li><a class="no-num" href="#acknowledgements">Acknowledgements</a></ol> -<hr><h2 id="common-infrastructure"><span class="secno">1 </span>Common infrastructure</h2><p>This specification is designed to be used with a <dfn id="host-language">host - language</dfn> that defines the following terms:<ul class="brief"><li>DOM <dfn id="collections">collections</dfn> - <li>The <dfn id="htmlcollection-interface"><code>HTMLCollection</code> interface</dfn> - <li><dfn id="reflect" title="reflect">Reflection</dfn> of IDL attributes - <li><dfn id="tree-order">Tree order</dfn> in a DOM tree - <li>A node's <dfn id="home-subtree">home subtree</dfn> - <li><dfn id="url">URL</dfn> - <li><dfn id="valid-url">Valid URL</dfn> - <li><dfn id="absolute-url">Absolute URL</dfn> - <li><dfn id="resolve-a-url">Resolve a URL</dfn>. - <li><dfn id="alphanumeric-ascii-characters">Alphanumeric ASCII characters</dfn> - <li><dfn id="space-characters">Space characters</dfn> - <li><dfn id="split-a-string-on-spaces">Split a string on spaces</dfn> - <li><dfn id="converted-to-ascii-uppercase">Converted to ASCII uppercase</dfn> - <li><dfn id="prefix-match">Prefix match</dfn> - <li><dfn id="html-elements">HTML elements</dfn> - <li>The <dfn id="htmlelement"><code>HTMLElement</code></dfn> interface - <li>The <dfn id="htmldocument"><code>HTMLDocument</code></dfn> interface - <li><dfn id="the-title-element">The <code>title</code> element</dfn> in the context of an <code><a href="#htmldocument">HTMLDocument</a></code> - <li><dfn id="flow-content">Flow content</dfn> - <li><dfn id="phrasing-content">Phrasing content</dfn> - <li>An element's <dfn id="concept-id" title="concept-ID">ID</dfn> - <li>An element's <dfn id="language">language</dfn> - <li>A set of <dfn id="global-attributes">global attributes</dfn> - <li><dfn id="boolean-attribute">Boolean attribute</dfn> - <li><dfn id="unordered-set-of-unique-space-separated-tokens">Unordered set of unique space-separated tokens</dfn> - <li><dfn id="valid-non-negative-integer">Valid non-negative integer</dfn> - <li><dfn id="concept-date" title="concept-date">Date</dfn> - <li><dfn id="concept-time" title="concept-time">Time</dfn> - <li><dfn id="concept-datetime" title="concept-datetime">Global date and time</dfn> - <li><dfn id="valid-date-string">Valid date string</dfn> - <li><dfn id="valid-global-date-and-time-string">Valid global date and time string</dfn> - <li><dfn id="the-document-s-current-address">The document's current address</dfn> - <li><dfn id="drag-and-drop-initialization-steps">Drag-and-drop initialization steps</dfn> - <li>The <dfn id="list-of-dragged-nodes">list of dragged nodes</dfn> - </ul><p>The <a href="#host-language">host language</a> also defines the elements used in - this specification.</p><h3 id="conformance-requirements"><span class="secno">1.1 </span>Conformance requirements</h3><p>All diagrams, examples, and notes in this specification are +<hr><h3 id="dependencies"><span class="secno">0.1 </span>Dependencies</h3><p>This specification depends on the Web IDL and HTML5 + specifications. <a href="#refsWEBIDL">[WEBIDL]</a> <a href="#refsHTML5">[HTML5]</a><h3 id="terminology"><span class="secno">0.2 </span>Terminology</h3><p>This specification relies heavily on the HTML5 specification to + define underlying terms.<p>HTML5 defines the concept of DOM <dfn id="collections">collections</dfn> and the + <dfn id="htmlcollection"><code>HTMLCollection</code></dfn> interface, as well as the + concept of IDL attributes <dfn id="reflect" title="reflect">reflecting</dfn> + content attributes. It also defines <dfn id="tree-order">tree order</dfn> and the + concept of a node's <dfn id="home-subtree">home subtree</dfn>.<p>HTML5 defines the terms <dfn id="url">URL</dfn>, <dfn id="valid-url">valid URL</dfn>, + <dfn id="absolute-url">absolute URL</dfn>, and <dfn id="resolve-a-url">resolve a URL</dfn>.<p>HTML5 defines the terms <dfn id="alphanumeric-ascii-characters">alphanumeric ASCII characters</dfn>, + <dfn id="space-characters">space characters</dfn> <dfn id="split-a-string-on-spaces">split a string on spaces</dfn>, + <dfn id="converted-to-ascii-uppercase">converted to ASCII uppercase</dfn>, and <dfn id="prefix-match">prefix + match</dfn>.<p>HTML5 defines the meaning of the term <dfn id="html-elements">HTML elements</dfn>, as + well as all the elements referenced in this specification. It also + defines the <dfn id="htmlelement"><code>HTMLElement</code></dfn> and + <dfn id="htmldocument"><code>HTMLDocument</code></dfn> interfaces. It defines the + specific concept of <dfn id="the-title-element">the <code>title</code> element</dfn> in the + context of an <code><a href="#htmldocument">HTMLDocument</a></code>. In the context of content + models it defines the terms <dfn id="flow-content">flow content</dfn> and + <dfn id="phrasing-content">phrasing content</dfn>. It also defines what an element's <dfn id="concept-id" title="concept-ID">ID</dfn> or <dfn id="language">language</dfn> is in HTML.<p>HTML5 defines the set of <dfn id="global-attributes">global attributes</dfn>, as well as + terms used in describing attributes and their processing, such as + the concept of a <dfn id="boolean-attribute">boolean attribute</dfn>, of an <dfn id="unordered-set-of-unique-space-separated-tokens">unordered + set of unique space-separated tokens</dfn>, of a <dfn id="valid-non-negative-integer">valid + non-negative integer</dfn>, of a <dfn id="concept-date" title="concept-date">date</dfn>, a <dfn id="concept-time" title="concept-time">time</dfn>, a <dfn id="concept-datetime" title="concept-datetime">global date and time</dfn>, a <dfn id="valid-date-string">valid + date string</dfn>, and a <dfn id="valid-global-date-and-time-string">valid global date and time + string</dfn>.<p>HTML5 defines what <dfn id="the-document-s-current-address">the document's current address</dfn> + is.<p>Finally, HTML5 also defines the concepts of <dfn id="drag-and-drop-initialization-steps">drag-and-drop + initialization steps</dfn> and of the <dfn id="list-of-dragged-nodes">list of dragged + nodes</dfn>, which come up in the context of drag-and-drop + interfaces.</p><h3 id="conformance-requirements"><span class="secno">0.3 </span>Conformance requirements</h3><p>All diagrams, examples, and notes in this specification are non-normative, as are all sections explicitly marked non-normative. Everything else in this specification is normative.<p>The key words "MUST", "MUST NOT", "REQUIRED", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in the normative parts of this document are to be @@ -603,10 +601,10 @@ specification are intended to be easy to follow, and not intended to be performant.)</p> - </div><h3 id="htmlpropertiescollection-0"><span class="secno">1.2 </span>HTMLPropertiesCollection</h3><p>The <code><a href="#htmlpropertiescollection">HTMLPropertiesCollection</a></code> interface represents a + </div><h3 id="htmlpropertiescollection-0"><span class="secno">0.4 </span>HTMLPropertiesCollection</h3><p>The <code><a href="#htmlpropertiescollection">HTMLPropertiesCollection</a></code> interface represents a <a href="#collections" title="collections">collection</a> of elements that add name-value pairs to a particular <a href="#concept-item" title="concept-item">item</a> in the <span>microdata</span> - model.<pre class="idl">interface <dfn id="htmlpropertiescollection">HTMLPropertiesCollection</dfn> : <span>HTMLCollection</span> { + model.<pre class="idl">interface <dfn id="htmlpropertiescollection">HTMLPropertiesCollection</dfn> : <a href="#htmlcollection">HTMLCollection</a> { // inherits <span title="dom-HTMLCollection-length">length</span> and <span title="dom-HTMLCollection-item">item</span>() caller getter <a href="#propertynodelist">PropertyNodeList</a> <a href="#dom-htmlpropertiescollection-nameditem" title="dom-HTMLPropertiesCollection-namedItem">namedItem</a>(in DOMString name); // overrides inherited namedItem() readonly attribute <span>DOMStringList</span> <a href="#dom-htmlpropertiescollection-names" title="dom-HTMLPropertiesCollection-names">names</a>; @@ -649,7 +647,7 @@ </dl><div class="impl"> <p>The object's <span>supported property indices</span> are as - defined for <code>HTMLCollection</code> objects.</p> + defined for <code><a href="#htmlcollection">HTMLCollection</a></code> objects.</p> <p>The <span>supported property names</span> consist of the <a href="#property-names">property names</a> of all the elements <span>represented by @@ -682,14 +680,14 @@ the elements represented by the object, in <a href="#tree-order">tree order</a>.</p> - </div><h2 id="introduction"><span class="secno">2 </span>Introduction</h2><h3 id="overview"><span class="secno">2.1 </span>Overview</h3><p><i>This section is non-normative.</i><p>Sometimes, it is desirable to annotate content with specific + </div><h2 id="introduction"><span class="secno">1 </span>Introduction</h2><h3 id="overview"><span class="secno">1.1 </span>Overview</h3><p><i>This section is non-normative.</i><p>Sometimes, it is desirable to annotate content with specific machine-readable labels, e.g. to allow generic scripts to provide services that are customised to the page, or to enable content from a variety of cooperating authors to be processed by a single script in a consistent manner.<p>For this purpose, authors can use the microdata features described in this section. Microdata allows nested groups of name-value pairs to be added to documents, in parallel with the - existing content.<h3 id="the-basic-syntax"><span class="secno">2.2 </span>The basic syntax</h3><p><i>This section is non-normative.</i><p>At a high level, microdata consists of a group of name-value + existing content.<h3 id="the-basic-syntax"><span class="secno">1.2 </span>The basic syntax</h3><p><i>This section is non-normative.</i><p>At a high level, microdata consists of a group of name-value pairs. The groups are called <a href="#concept-item" title="concept-item">items</a>, and each name-value pair is a property. Items and properties are represented by regular elements.<p>To create an item, the <code title="attr-itemscope"><a href="#attr-itemscope">itemscope</a></code> attribute is used.<p>To add a property to an item, the <code title="attr-itemprop"><a href="#names:-the-itemprop-attribute">itemprop</a></code> attribute is used on one of @@ -837,7 +835,7 @@ drag-and-drop data. In neither case is the image in any way associated with the item.</p> - </div><h3 id="typed-items"><span class="secno">2.3 </span>Typed items</h3><p><i>This section is non-normative.</i><p>The examples in the previous section show how information could + </div><h3 id="typed-items"><span class="secno">1.3 </span>Typed items</h3><p><i>This section is non-normative.</i><p>The examples in the previous section show how information could be marked up on a page that doesn't expect its microdata to be re-used. Microdata is most useful, though, when it is used in contexts where other authors and readers are able to cooperate to @@ -865,7 +863,7 @@ given for an item with the type "http://census.example/person" might refer to the economic class of an individual, while a property named "class" given for an item with the type "http://example.com/school/teacher" - might refer to the classroom a teacher has been assigned.<h3 id="global-identifiers-for-items"><span class="secno">2.4 </span>Global identifiers for items</h3><p><i>This section is non-normative.</i><p>Sometimes, an <a href="#concept-item" title="concept-item">item</a> gives + might refer to the classroom a teacher has been assigned.<h3 id="global-identifiers-for-items"><span class="secno">1.4 </span>Global identifiers for items</h3><p><i>This section is non-normative.</i><p>Sometimes, an <a href="#concept-item" title="concept-item">item</a> gives information about a topic that has a global identifier. For example, books can be identified by their ISBN number.<p>Vocabularies (as identified by the <code title="attr-itemtype"><a href="#attr-itemtype">itemtype</a></code> attribute) can be designed such that <a href="#concept-item" title="concept-item">items</a> get associated @@ -892,7 +890,7 @@ vocabulary in this example would define that the <code title="attr-itemid"><a href="#attr-itemid">itemid</a></code> attribute takes a <code title="">urn:</code> <a href="#url">URL</a> pointing to the ISBN of the book.</p> - </div><h3 id="selecting-names-when-defining-vocabularies"><span class="secno">2.5 </span>Selecting names when defining vocabularies</h3><p><i>This section is non-normative.</i><p>Using microdata means using a vocabulary. For some purposes, an + </div><h3 id="selecting-names-when-defining-vocabularies"><span class="secno">1.5 </span>Selecting names when defining vocabularies</h3><p><i>This section is non-normative.</i><p>Using microdata means using a vocabulary. For some purposes, an ad-hoc vocabulary is adequate. For others, a vocabulary will need to be designed. Where possible, authors are encouraged to re-use existing vocabularies, as this makes content re-use easier.<p>When designing new vocabularies, identifiers can be created @@ -947,7 +945,7 @@ <td>white <tr><td>img <td>.../hedral.jpeg - </table></div><h3 id="using-the-microdata-dom-api"><span class="secno">2.6 </span>Using the microdata DOM API</h3><p><i>This section is non-normative.</i><p>The microdata becomes even more useful when scripts can use it to + </table></div><h3 id="using-the-microdata-dom-api"><span class="secno">1.6 </span>Using the microdata DOM API</h3><p><i>This section is non-normative.</i><p>The microdata becomes even more useful when scripts can use it to expose information to the user, for example offering it in a form that can be used by other applications.<p>The <code title="dom-document-getItems"><a href="#dom-document-getitems">document.getItems(<var title="">typeNames</var>)</a></code> method provides access to the <a href="#top-level-microdata-items">top-level microdata items</a>. It returns a @@ -1052,13 +1050,13 @@ </ul><p>(The duplicate occurrence of "http://example.com/color" is not included in the list.)</p> - </div><h2 id="encoding-microdata"><span class="secno">3 </span>Encoding microdata</h2><p>The following attributes are added as <a href="#global-attributes">global + </div><h2 id="encoding-microdata"><span class="secno">2 </span>Encoding microdata</h2><p>The following attributes are added as <a href="#global-attributes">global attributes</a> to <a href="#html-elements">HTML elements</a>:<ul class="brief"><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> - </ul><h3 id="the-microdata-model"><span class="secno">3.1 </span>The microdata model</h3><p>The microdata model consists of groups of name-value pairs known + </ul><h3 id="the-microdata-model"><span class="secno">2.1 </span>The microdata model</h3><p>The microdata model consists of groups of name-value pairs known as <a href="#concept-item" title="concept-item">items</a>.<p>Each group is known as an <a href="#concept-item" title="concept-item">item</a>. Each <a href="#concept-item" title="concept-item">item</a> can have an <a href="#item-type">item type</a>, a <a href="#global-identifier">global identifier</a> (if the <a href="#item-type">item type</a> <a href="#support-global-identifiers-for-items" title="support global identifiers for items">supports global @@ -1071,7 +1069,7 @@ item">property</a> of a <a href="#typed-item">typed item</a>. The <dfn id="relevant-type">relevant type</dfn> for a <a href="#typed-item">typed item</a> is the <a href="#concept-item" title="concept-item">item</a>'s <a href="#item-type">item type</a>, if it has one, or else is the <a href="#relevant-type">relevant type</a> of the <a href="#concept-item" title="concept-item">item</a> for which it is a <a href="#the-properties-of-an-item" title="the - properties of an item">property</a>'s <a href="#concept-property-value" title="concept-property-value">value</a>.<h3 id="items"><span class="secno">3.2 </span>Items</h3><p>Every <a href="#html-elements" title="HTML elements">HTML element</a> may have an + properties of an item">property</a>'s <a href="#concept-property-value" title="concept-property-value">value</a>.<h3 id="items"><span class="secno">2.2 </span>Items</h3><p>Every <a href="#html-elements" title="HTML elements">HTML element</a> may have an <dfn id="attr-itemscope" title="attr-itemscope"><code>itemscope</code></dfn> attribute specified. The <code title="attr-itemscope"><a href="#attr-itemscope">itemscope</a></code> attribute is a <a href="#boolean-attribute">boolean attribute</a>.<p>An element with the <code title="attr-itemscope"><a href="#attr-itemscope">itemscope</a></code> @@ -1125,7 +1123,7 @@ unique space-separated tokens</a> that are <span>case-sensitive</span>, consisting of <a href="#concept-id" title="concept-ID">IDs</a> of elements in the same <a href="#home-subtree">home subtree</a>.<p>The <code title="attr-itemref"><a href="#attr-itemref">itemref</a></code> attribute must not - be specified on elements that do not have an <code title="attr-itemscope"><a href="#attr-itemscope">itemscope</a></code> attribute specified.<h3 id="names:-the-itemprop-attribute"><span class="secno">3.3 </span>Names: the <dfn title="attr-itemprop"><code>itemprop</code></dfn> attribute</h3><p>Every <a href="#html-elements" title="HTML elements">HTML element</a> may have an + be specified on elements that do not have an <code title="attr-itemscope"><a href="#attr-itemscope">itemscope</a></code> attribute specified.<h3 id="names:-the-itemprop-attribute"><span class="secno">2.3 </span>Names: the <dfn title="attr-itemprop"><code>itemprop</code></dfn> attribute</h3><p>Every <a href="#html-elements" title="HTML elements">HTML element</a> may have an <code title="attr-itemprop"><a href="#names:-the-itemprop-attribute">itemprop</a></code> attribute specified, if doing so <a href="#the-properties-of-an-item" title="the properties of an item">adds a property</a> to one or more <a href="#concept-item" title="concept-item">items</a> (as defined below).<p>The <code title="attr-itemprop"><a href="#names:-the-itemprop-attribute">itemprop</a></code> attribute, if @@ -1200,7 +1198,7 @@ </div> </pre> - </div><h3 id="values"><span class="secno">3.4 </span>Values</h3><p>The <dfn id="concept-property-value" title="concept-property-value">property value</dfn> of a + </div><h3 id="values"><span class="secno">2.4 </span>Values</h3><p>The <dfn id="concept-property-value" title="concept-property-value">property value</dfn> of a name-value pair added by an element with an <code title="attr-itemprop"><a href="#names:-the-itemprop-attribute">itemprop</a></code> attribute depends on the element, as follows:<dl><dt>If the element also has an <code title="attr-itemscope"><a href="#attr-itemscope">itemscope</a></code> attribute</dt> @@ -1267,7 +1265,7 @@ element</a>.<p>If a property's <a href="#concept-property-value" title="concept-property-value">value</a> represents a <a href="#concept-date" title="concept-date">date</a>, <a href="#concept-time" title="concept-time">time</a>, or <a href="#concept-datetime" title="concept-datetime">global date and time</a>, the property must be specified using the <code title="attr-time-datetime">datetime</code> attribute of a - <code>time</code> element.<h3 id="associating-names-with-items"><span class="secno">3.5 </span>Associating names with items</h3><p>To find <dfn id="the-properties-of-an-item">the properties of an item</dfn> defined by the + <code>time</code> element.<h3 id="associating-names-with-items"><span class="secno">2.5 </span>Associating names with items</h3><p>To find <dfn id="the-properties-of-an-item">the properties of an item</dfn> defined by the element <var title="">root</var>, the user agent must try to <a href="#crawl-the-properties">crawl the properties</a> of the element <var title="">root</var>, with an empty list as the value of <var title="">memory</var>: if this fails, then <a href="#the-properties-of-an-item" title="the properties of an item">the properties of the item</a> defined by @@ -1394,7 +1392,7 @@ <dd>The mailbox. <dt>license <dd><code title="">http://www.opensource.org/licenses/mit-license.php</code> - </dl></div><h2 id="microdata-dom-api"><span class="secno">4 </span>Microdata DOM API</h2><pre class="idl">[Supplemental] interface <a href="#htmldocument">HTMLDocument</a> { + </dl></div><h2 id="microdata-dom-api"><span class="secno">3 </span>Microdata DOM API</h2><pre class="idl">[Supplemental] interface <a href="#htmldocument">HTMLDocument</a> { NodeList <a href="#dom-document-getitems" title="dom-document-getItems">getItems</a>(in optional DOMString typeNames); // <span>microdata</span> }; @@ -1558,9 +1556,15 @@ <pre>for (var index = 0; index < element.itemRef.length; index += 1) process(document.getElementById(element.itemRef[index]));</pre> - </div><div class="impl"> + </div><h2 id="other-changes-to-html5"><span class="secno">4 </span>Other changes to HTML5</h2><h3 id="content-models"><span class="secno">4.1 </span>Content models</h3><p>If the <code title="attr-itemprop"><a href="#names:-the-itemprop-attribute">itemprop</a></code> attribute is + present on <code>link</code> or <code>meta</code>, they are + <a href="#flow-content">flow content</a> and <a href="#phrasing-content">phrasing content</a>. The + <code>link</code> and <code>meta</code> elements may be used where + <a href="#phrasing-content">phrasing content</a> is expected if the <code title="attr-itemprop"><a href="#names:-the-itemprop-attribute">itemprop</a></code> attribute is present.<p>If a <code>link</code> element has an <code title="attr-itemprop"><a href="#names:-the-itemprop-attribute">itemprop</a></code> attribute, the <code title="attr-link-rel">rel</code> attribute may be omitted.<p>If a <code>meta</code> element has an <code title="attr-itemprop"><a href="#names:-the-itemprop-attribute">itemprop</a></code> attribute, the <code title="attr-meta-name">name</code>, <code title="attr-meta-http-equiv">http-equiv</code>, and <code title="attr-meta-charset">charset</code> attributes must be omitted, + and the <code title="attr-meta-content">content</code> attribute + must be present.</p><div class="impl"> - <h3 id="drag-and-drop"><span class="secno">4.1 </span>Drag-and-drop</h3> + <h3 id="drag-and-drop"><span class="secno">4.2 </span>Drag-and-drop</h3> <p>The <a href="#drag-and-drop-initialization-steps">drag-and-drop initialization steps</a> are: @@ -2086,7 +2090,6 @@ semantics as when used with <code>application/json</code> (namely, at the time of writing, no semantics at all). <a href="#refsJSON">[JSON]</a><h2 class="no-num" id="references">References</h2><p>All references are normative unless marked "Non-normative".</p><dl><dt id="refsHTML5">[HTML5]</dt> <dd> - (Non-normative) <cite><a href="http://dev.w3.org/html5/spec/">HTML5</a></cite>, I. Hickson. W3C.</dd>
Received on Friday, 17 June 2011 09:55:36 UTC