Skip to content
Permalink
Browse files
[e] (0) Disambiguate what to do in conflicting cases. Also, change th…
…e spacing in th emarkup so I can add paragraphs here easily later.

Affected topics: Microdata

git-svn-id: http://svn.whatwg.org/webapps@6850 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Dec 7, 2011
1 parent 2a5dc69 commit 74ecf6dc25579815386fc476f05438a048ebe01c
Showing 3 changed files with 185 additions and 95 deletions.
@@ -57245,70 +57245,100 @@ <h4 id=names:-the-itemprop-attribute><span class=secno>5.2.3 </span>Names: the <
<h4 id=values><span class=secno>5.2.4 </span>Values</h4>

<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:</p>
name-value pair added by an element with an <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute is as given for the
first matching case in the following list:</p>

<dl><dt>If the element also has an <code title=attr-itemscope><a href=#attr-itemscope>itemscope</a></code> attribute</dt>
<dl class=switch><dt>If the element also has an <code title=attr-itemscope><a href=#attr-itemscope>itemscope</a></code> attribute</dt>

<dd><p>The value is the <a href=#concept-item title=concept-item>item</a>
created by the element.</dd>
<dd>

<p>The value is the <a href=#concept-item title=concept-item>item</a> created
by the element.</p>

</dd>


<dt>If the element is a <code><a href=#the-meta-element>meta</a></code> element</dt>

<dd><p>The value is the value of the element's <code title=attr-content>content</code> attribute, if any, or the empty
string if there is no such attribute.</dd>
<dd>

<p>The value is the value of the element's <code title=attr-content>content</code> attribute, if any, or the
empty string if there is no such attribute.</p>

</dd>


<dt>If the element is an <code><a href=#the-audio-element>audio</a></code>, <code><a href=#the-embed-element>embed</a></code>,
<code><a href=#the-iframe-element>iframe</a></code>, <code><a href=#the-img-element>img</a></code>, <code><a href=#the-source-element>source</a></code>,
<code><a href=#the-track-element>track</a></code>, or <code><a href=#the-video-element>video</a></code> element</dt>

<dd><p>The value is the <a href=#absolute-url>absolute URL</a> that results from
<a href=#resolve-a-url title="resolve a url">resolving</a> the value of the
element's <code title="">src</code> attribute relative to the
element at the time the attribute is set, or the empty string if
there is no such attribute or if <a href=#resolve-a-url title="resolve a
url">resolving</a> it results in an error.</dd>
<dd>

<p>The value is the <a href=#absolute-url>absolute URL</a> that results from
<a href=#resolve-a-url title="resolve a url">resolving</a> the value of the
element's <code title="">src</code> attribute relative to the
element at the time the attribute is set, or the empty string if
there is no such attribute or if <a href=#resolve-a-url title="resolve a
url">resolving</a> it results in an error.</p>

</dd>


<dt>If the element is an <code><a href=#the-a-element>a</a></code>, <code><a href=#the-area-element>area</a></code>, or
<code><a href=#the-link-element>link</a></code> element</dt>

<dd><p>The value is the <a href=#absolute-url>absolute URL</a> that results from
<a href=#resolve-a-url title="resolve a url">resolving</a> the value of the
element's <code title="">href</code> attribute relative to the
element at the time the attribute is set, or the empty string if
there is no such attribute or if <a href=#resolve-a-url title="resolve a
url">resolving</a> it results in an error.</dd>
<dd>

<p>The value is the <a href=#absolute-url>absolute URL</a> that results from
<a href=#resolve-a-url title="resolve a url">resolving</a> the value of the
element's <code title="">href</code> attribute relative to the
element at the time the attribute is set, or the empty string if
there is no such attribute or if <a href=#resolve-a-url title="resolve a
url">resolving</a> it results in an error.</p>

</dd>


<dt>If the element is an <code><a href=#the-object-element>object</a></code> element</dt>

<dd><p>The value is the <a href=#absolute-url>absolute URL</a> that results from
<a href=#resolve-a-url title="resolve a url">resolving</a> the value of the
element's <code title="">data</code> attribute relative to the
element at the time the attribute is set, or the empty string if
there is no such attribute or if <a href=#resolve-a-url title="resolve a
url">resolving</a> it results in an error.</dd>
<dd>

<p>The value is the <a href=#absolute-url>absolute URL</a> that results from
<a href=#resolve-a-url title="resolve a url">resolving</a> the value of the
element's <code title="">data</code> attribute relative to the
element at the time the attribute is set, or the empty string if
there is no such attribute or if <a href=#resolve-a-url title="resolve a
url">resolving</a> it results in an error.</p>

</dd>


<dt>If the element is a <code><a href=#the-data-element>data</a></code> element</dt>

<dd><p>The value is the value of the element's <code title=attr-data-value><a href=#attr-data-value>value</a></code> attribute, if it has one, or
the empty string otherwise.</dd>
<dd>

<p>The value is the value of the element's <code title=attr-data-value><a href=#attr-data-value>value</a></code> attribute, if it has one, or
the empty string otherwise.</p>

</dd>


<dt>If the element is a <code><a href=#the-time-element>time</a></code> element</dt>

<dd><p>The value is the element's <a href=#datetime-value>datetime
value</a>.</dd>
<dd>

<p>The value is the element's <a href=#datetime-value>datetime value</a>.</p>

</dd>


<dt>Otherwise</dt>

<dd><p>The value is the element's
<code><a href=#textcontent>textContent</a></code>.</dd>
<dd>

<p>The value is the element's <code><a href=#textcontent>textContent</a></code>.</p>

</dd>

</dl><p>The <dfn id=url-property-elements>URL property elements</dfn> are the <code><a href=#the-a-element>a</a></code>,
<code><a href=#the-area-element>area</a></code>, <code><a href=#the-audio-element>audio</a></code>, <code><a href=#the-embed-element>embed</a></code>,
92 index
@@ -57245,70 +57245,100 @@ document.body.appendChild(outer);</pre>
<h4 id=values><span class=secno>5.2.4 </span>Values</h4>

<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:</p>
name-value pair added by an element with an <code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute is as given for the
first matching case in the following list:</p>

<dl><dt>If the element also has an <code title=attr-itemscope><a href=#attr-itemscope>itemscope</a></code> attribute</dt>
<dl class=switch><dt>If the element also has an <code title=attr-itemscope><a href=#attr-itemscope>itemscope</a></code> attribute</dt>

<dd><p>The value is the <a href=#concept-item title=concept-item>item</a>
created by the element.</dd>
<dd>

<p>The value is the <a href=#concept-item title=concept-item>item</a> created
by the element.</p>

</dd>


<dt>If the element is a <code><a href=#the-meta-element>meta</a></code> element</dt>

<dd><p>The value is the value of the element's <code title=attr-content>content</code> attribute, if any, or the empty
string if there is no such attribute.</dd>
<dd>

<p>The value is the value of the element's <code title=attr-content>content</code> attribute, if any, or the
empty string if there is no such attribute.</p>

</dd>


<dt>If the element is an <code><a href=#the-audio-element>audio</a></code>, <code><a href=#the-embed-element>embed</a></code>,
<code><a href=#the-iframe-element>iframe</a></code>, <code><a href=#the-img-element>img</a></code>, <code><a href=#the-source-element>source</a></code>,
<code><a href=#the-track-element>track</a></code>, or <code><a href=#the-video-element>video</a></code> element</dt>

<dd><p>The value is the <a href=#absolute-url>absolute URL</a> that results from
<a href=#resolve-a-url title="resolve a url">resolving</a> the value of the
element's <code title="">src</code> attribute relative to the
element at the time the attribute is set, or the empty string if
there is no such attribute or if <a href=#resolve-a-url title="resolve a
url">resolving</a> it results in an error.</dd>
<dd>

<p>The value is the <a href=#absolute-url>absolute URL</a> that results from
<a href=#resolve-a-url title="resolve a url">resolving</a> the value of the
element's <code title="">src</code> attribute relative to the
element at the time the attribute is set, or the empty string if
there is no such attribute or if <a href=#resolve-a-url title="resolve a
url">resolving</a> it results in an error.</p>

</dd>


<dt>If the element is an <code><a href=#the-a-element>a</a></code>, <code><a href=#the-area-element>area</a></code>, or
<code><a href=#the-link-element>link</a></code> element</dt>

<dd><p>The value is the <a href=#absolute-url>absolute URL</a> that results from
<a href=#resolve-a-url title="resolve a url">resolving</a> the value of the
element's <code title="">href</code> attribute relative to the
element at the time the attribute is set, or the empty string if
there is no such attribute or if <a href=#resolve-a-url title="resolve a
url">resolving</a> it results in an error.</dd>
<dd>

<p>The value is the <a href=#absolute-url>absolute URL</a> that results from
<a href=#resolve-a-url title="resolve a url">resolving</a> the value of the
element's <code title="">href</code> attribute relative to the
element at the time the attribute is set, or the empty string if
there is no such attribute or if <a href=#resolve-a-url title="resolve a
url">resolving</a> it results in an error.</p>

</dd>


<dt>If the element is an <code><a href=#the-object-element>object</a></code> element</dt>

<dd><p>The value is the <a href=#absolute-url>absolute URL</a> that results from
<a href=#resolve-a-url title="resolve a url">resolving</a> the value of the
element's <code title="">data</code> attribute relative to the
element at the time the attribute is set, or the empty string if
there is no such attribute or if <a href=#resolve-a-url title="resolve a
url">resolving</a> it results in an error.</dd>
<dd>

<p>The value is the <a href=#absolute-url>absolute URL</a> that results from
<a href=#resolve-a-url title="resolve a url">resolving</a> the value of the
element's <code title="">data</code> attribute relative to the
element at the time the attribute is set, or the empty string if
there is no such attribute or if <a href=#resolve-a-url title="resolve a
url">resolving</a> it results in an error.</p>

</dd>


<dt>If the element is a <code><a href=#the-data-element>data</a></code> element</dt>

<dd><p>The value is the value of the element's <code title=attr-data-value><a href=#attr-data-value>value</a></code> attribute, if it has one, or
the empty string otherwise.</dd>
<dd>

<p>The value is the value of the element's <code title=attr-data-value><a href=#attr-data-value>value</a></code> attribute, if it has one, or
the empty string otherwise.</p>

</dd>


<dt>If the element is a <code><a href=#the-time-element>time</a></code> element</dt>

<dd><p>The value is the element's <a href=#datetime-value>datetime
value</a>.</dd>
<dd>

<p>The value is the element's <a href=#datetime-value>datetime value</a>.</p>

</dd>


<dt>Otherwise</dt>

<dd><p>The value is the element's
<code><a href=#textcontent>textContent</a></code>.</dd>
<dd>

<p>The value is the element's <code><a href=#textcontent>textContent</a></code>.</p>

</dd>

</dl><p>The <dfn id=url-property-elements>URL property elements</dfn> are the <code><a href=#the-a-element>a</a></code>,
<code><a href=#the-area-element>area</a></code>, <code><a href=#the-audio-element>audio</a></code>, <code><a href=#the-embed-element>embed</a></code>,

0 comments on commit 74ecf6d

Please sign in to comment.