Bugzilla – Bug 559
Rename property='' to itemprop=''.
Last modified: 2009-05-27 14:44:24 CEST
Index: source =================================================================== --- source (revision 3086) +++ source (revision 3087) @@ -8262,7 +8262,7 @@ // <span>microdata</span> [PutForwards=<span title="dom-DOMSettableTokenList-value">value</span>] readonly attribute <span>DOMSettableTokenList</span> <span title="dom-item">item</span>; - [PutForwards=<span title="dom-DOMSettableTokenList-value">value</span>] readonly attribute <span>DOMSettableTokenList</span> <span title="dom-property">property</span>; + [PutForwards=<span title="dom-DOMSettableTokenList-value">value</span>] readonly attribute <span>DOMSettableTokenList</span> <span title="dom-itemprop">itemprop</span>; readonly attribute <span>HTMLPropertyCollection</span> <span title="dom-properties">properties</span>; attribute DOMString <span title="dom-content">content</span>; attribute <span>HTMLElement</span> <span title="dom-subject">subject</span>; @@ -8376,7 +8376,7 @@ <li><code title="attr-item">item</code></li> <li><code title="attr-hidden">hidden</code></li> <li><code title="attr-lang">lang</code></li> - <li><code title="attr-property">property</code></li> + <li><code title="attr-itemprop">itemprop</code></li> <li><code title="attr-spellcheck">spellcheck</code></li> <li><code title="attr-style">style</code></li> <li><code title="attr-subject">subject</code></li> @@ -10731,11 +10731,11 @@ <dl class="element"> <dt>Categories</dt> <dd><span>Metadata content</span>.</dd> - <dd>If the <code title="attr-property">property</code> attribute is present: <span>flow content</span>.</dd> + <dd>If the <code title="attr-itemprop">itemprop</code> attribute is present: <span>flow content</span>.</dd> <dt>Contexts in which this element may be used:</dt> <dd>Where <span>metadata content</span> is expected.</dd> <dd>In a <code>noscript</code> element that is a child of a <code>head</code> element.</dd> - <dd>If the <code title="attr-property">property</code> attribute is present: where <span>flow content</span> is expected.</dd> + <dd>If the <code title="attr-itemprop">itemprop</code> attribute is present: where <span>flow content</span> is expected.</dd> <dt>Content model:</dt> <dd>Empty.</dd> <dt>Content attributes:</dt> @@ -11091,13 +11091,13 @@ <dl class="element"> <dt>Categories</dt> <dd><span>Metadata content</span>.</dd> - <dd>If the <code title="attr-property">property</code> attribute is present: <span>flow content</span>.</dd> + <dd>If the <code title="attr-itemprop">itemprop</code> attribute is present: <span>flow content</span>.</dd> <dt>Contexts in which this element may be used:</dt> <dd>If the <code title="attr-meta-charset">charset</code> attribute is present, or if the element is in the <span title="attr-meta-http-equiv-content-type">Encoding declaration state</span>: in a <code>head</code> element.</dd> <dd>If the <code title="attr-meta-http-equiv">http-equiv</code> attribute is present, and the element is not in the <span title="attr-meta-http-equiv-content-type">Encoding declaration state</span>: in a <code>head</code> element.</dd> <dd>If the <code title="attr-meta-http-equiv">http-equiv</code> attribute is present, and the element is not in the <span title="attr-meta-http-equiv-content-type">Encoding declaration state</span>: in a <code>noscript</code> element that is a child of a <code>head</code> element.</dd> <dd>If the <code title="attr-meta-name">name</code> attribute is present: where <span>metadata content</span> is expected.</dd> - <dd>If the <code title="attr-property">property</code> attribute is present: where <span>flow content</span> is expected.</dd> + <dd>If the <code title="attr-itemprop">itemprop</code> attribute is present: where <span>flow content</span> is expected.</dd> <dt>Content model:</dt> <dd>Empty.</dd> <dt>Content attributes:</dt> @@ -11132,12 +11132,12 @@ <p>Exactly one of the <code title="attr-meta-name">name</code>, <code title="attr-meta-http-equiv">http-equiv</code>, <code title="attr-meta-charset">charset</code>, and <code - title="attr-property">property</code> attributes must be + title="attr-itemprop">itemprop</code> attributes must be specified.</p> <p>If either <code title="attr-meta-name">name</code>, <code title="attr-meta-http-equiv">http-equiv</code>, or <code - title="attr-property">property</code> is specified, then the <code + title="attr-itemprop">itemprop</code> is specified, then the <code title="attr-meta-content">content</code> attribute must also be specified. Otherwise, it must be omitted.</p> @@ -45832,11 +45832,11 @@ <p>Here there are two items, each of which have the property "name":</p> <pre><div item> - <p>My name is <span property="name">Elizabeth</span>.</p> + <p>My name is <span itemprop="name">Elizabeth</span>.</p> </div> <div item> - <p>My name is <span property="name">Daniel</span>.</p> + <p>My name is <span itemprop="name">Daniel</span>.</p> </div></pre> </div> @@ -45848,9 +45848,9 @@ <p>Here the item has three properties:</p> <pre><div item> - <p>My name is <span property="name">Neil</span>.</p> - <p>My band is called <span property="band">Four Parts Water</span>.</p> - <p>I am <span property="nationality">British</span>.</p> + <p>My name is <span itemprop="name">Neil</span>.</p> + <p>My band is called <span itemprop="band">Four Parts Water</span>.</p> + <p>I am <span itemprop="nationality">British</span>.</p> </div></pre> </div> @@ -45867,7 +45867,7 @@ <p>In this example, the item has one property, "image", whose value is a URL:</p> <pre><div item> - <img property="image" src="google-logo.png" alt="Google"> + <img itemprop="image" src="google-logo.png" alt="Google"> </div></pre> </div> @@ -45882,7 +45882,7 @@ value is a date:</p> <pre><div item> - I was born on <time property="birthday" datetime="2009-05-10">May 10th 2009</time>. + I was born on <time itemprop="birthday" datetime="2009-05-10">May 10th 2009</time>. </div></pre> </div> @@ -45900,8 +45900,8 @@ inner one represents a band:</p> <pre><div item> - <p>Name: <span property="name">Amanda</span></p> - <p>Band: <span property="band" item> <span property="name">Jazz Band</span> (<span property="size">12</span> players)</span></p> + <p>Name: <span itemprop="name">Amanda</span></p> + <p>Band: <span itemprop="band" item> <span itemprop="name">Jazz Band</span> (<span itemprop="size">12</span> players)</span></p> </div></pre> <p>The outer item here has two properties, "name" and "band". The @@ -45928,10 +45928,10 @@ title="concept-item">items</span>:</p> <pre><div item id="amanda"></div> -<p>Name: <span subject="amanda" property="name">Amanda</span></p> -<div subject="amanda" property="band" item id="jazzband"></div> -<p>Band: <span subject="jazzband" property="name">Jazz Band</span></p> -<p>Size: <span subject="jazzband" property="size">12</span> players</p></pre> +<p>Name: <span subject="amanda" itemprop="name">Amanda</span></p> +<div subject="amanda" itemprop="band" item id="jazzband"></div> +<p>Band: <span subject="jazzband" itemprop="name">Jazz Band</span></p> +<p>Size: <span subject="jazzband" itemprop="size">12</span> players</p></pre> <p>This gives the same result as the previous example. The first item has two properties, "name", set to "Amanda", and "band", set @@ -45950,8 +45950,8 @@ <pre><div item> <p>Flavors in my favorite ice cream:</p> <ul> - <li property="flavor">Lemon sorbet</li> - <li property="flavor">Apricot sorbet</li> + <li itemprop="flavor">Lemon sorbet</li> + <li itemprop="flavor">Apricot sorbet</li> </ul> </div></pre> @@ -45970,7 +45970,7 @@ "favorite-fruit", both set to the value "orange":</p> <pre><div item> - <span property="favorite-color favorite-fruit">orange</span> + <span itemprop="favorite-color favorite-fruit">orange</span> </div></pre> </div> @@ -46021,10 +46021,10 @@ <p>Here, the item is "org.example.animals.cat":</p> <pre><section item="org.example.animal.cat"> - <h1 property="org.example.name">Hedral</h1> - <p property="org.example.desc">Hedral is a male american domestic + <h1 itemprop="org.example.name">Hedral</h1> + <p itemprop="org.example.desc">Hedral is a male american domestic shorthair, with a fluffy black fur with white paws and belly.</p> - <img property="org.example.img" src="hedral.jpeg" alt="" title="Hedral, age 18 months"> + <img itemprop="org.example.img" src="hedral.jpeg" alt="" title="Hedral, age 18 months"> </section></pre> <p>In this example the "org.example.animals.cat" item has three @@ -46041,12 +46041,12 @@ <p>Here, the item is both an "org.example.animals.cat" and a "com.example.feline":</p> <pre><section item="org.example.animal.cat com.example.feline"> - <h1 property="org.example.name com.example.fn">Hedral</h1> - <p property="org.example.desc">Hedral is a male american domestic + <h1 itemprop="org.example.name com.example.fn">Hedral</h1> + <p itemprop="org.example.desc">Hedral is a male american domestic shorthair, with a fluffy <span - property="com.example.color">black</span> fur with <span - property="com.example.color">white</span> paws and belly.</p> - <img property="org.example.img" src="hedral.jpeg" alt="" title="Hedral, age 18 months"> + itemprop="com.example.color">black</span> fur with <span + itemprop="com.example.color">white</span> paws and belly.</p> + <img itemprop="org.example.img" src="hedral.jpeg" alt="" title="Hedral, age 18 months"> </section></pre> <p>This example has one item with two types and the following @@ -46238,12 +46238,12 @@ <p>If faced with the following from an earlier example:</p> <pre><section item="org.example.animal.cat com.example.feline"> - <h1 property="org.example.name com.example.fn">Hedral</h1> - <p property="org.example.desc">Hedral is a male american domestic + <h1 itemprop="org.example.name com.example.fn">Hedral</h1> + <p itemprop="org.example.desc">Hedral is a male american domestic shorthair, with a fluffy <span - property="com.example.color">black</span> fur with <span - property="com.example.color">white</span> paws and belly.</p> - <img property="org.example.img" src="hedral.jpeg" alt="" title="Hedral, age 18 months"> + itemprop="com.example.color">black</span> fur with <span + itemprop="com.example.color">white</span> paws and belly.</p> + <img itemprop="org.example.img" src="hedral.jpeg" alt="" title="Hedral, age 18 months"> </section></pre> <p>...it would result in the following output:</p> @@ -46375,18 +46375,18 @@ the list of <dfn>top-level microdata items</dfn>.</p> - <h4>Names: the <dfn title="attr-property"><code>property</code></dfn> attribute</h4> + <h4>Names: the <dfn title="attr-itemprop"><code>itemprop</code></dfn> attribute</h4> <p>Every <span title="HTML elements">HTML element</span> that has a <span title="concept-item-corresponding">corresponding item</span> - may have a <code title="attr-property">property</code> attribute + may have a <code title="attr-itemprop">itemprop</code> attribute specified.</p> - <p>An element with the <code title="attr-property">property</code> + <p>An element with the <code title="attr-itemprop">itemprop</code> attribute specified adds one or more name-value pairs to its <span title="concept-item-corresponding">corresponding item</span>.</p> - <p>The <code title="attr-property">property</code> attribute, if + <p>The <code title="attr-itemprop">itemprop</code> attribute, if specified, must have a value that is an <span>unordered set of unique space-separated tokens</span> representing the names of the name-value pairs that it adds. The attribute's value must have at @@ -46415,7 +46415,7 @@ </ul> <p>The <dfn>property names</dfn> of an element are the tokens that - the element's <code title="attr-property">property</code> attribute + the element's <code title="attr-itemprop">itemprop</code> attribute is found to contain when its value is <span title="split a string on spaces">split on spaces</span>, with the order preserved but with duplicates removed (leaving only the first occurrence of each @@ -46426,7 +46426,7 @@ <p>The <dfn title="concept-property-value">property value</dfn> of a name-value pair added by an element with a <code - title="attr-property">property</code> attribute depends on the + title="attr-itemprop">itemprop</code> attribute depends on the element, as follows:</p> <dl> @@ -46506,7 +46506,7 @@ </dd> - <dt><var title="">element</var> . <code title="dom-property">properties</code></dt> + <dt><var title="">element</var> . <code title="dom-properties">properties</code></dt> <dd> @@ -46543,9 +46543,9 @@ on elements must <span>reflect</span> the element's <code title="attr-item">item</code> content attribute.</p> - <p>The <dfn title="dom-property"><code>property</code></dfn> DOM + <p>The <dfn title="dom-itemprop"><code>itemprop</code></dfn> DOM attribute on elements must <span>reflect</span> the element's <code - title="attr-property">property</code> content attribute.</p> + title="attr-itemprop">itemprop</code> content attribute.</p> <p>The <dfn title="dom-properties"><code>properties</code></dfn> DOM attribute on elements must return an