Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[] (0) Rename subject='' to itemfor=''.
git-svn-id: http://svn.whatwg.org/webapps@3681 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 26, 2009
1 parent bbf4b9a commit 40c1c42
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 34 deletions.
34 changes: 17 additions & 17 deletions index
Expand Up @@ -7583,12 +7583,12 @@ interface <dfn id=htmlunknownelement>HTMLUnknownElement</dfn> : <a href=#htmlele
<li><code title=attr-draggable><a href=#the-draggable-attribute>draggable</a></code></li>
<li><code title=attr-id><a href=#the-id-attribute>id</a></code></li>
<li><code title=attr-item><a href=#items:-the-item-attribute>item</a></code></li>
<li><code title=attr-itemfor><a href=#attr-itemfor>itemfor</a></code></li>
<li><code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</a></code></li>
<li><code title=attr-hidden><a href=#the-hidden-attribute>hidden</a></code></li>
<li><code title=attr-lang><a href=#attr-lang>lang</a></code></li>
<li><code title=attr-itemprop><a href=#names:-the-itemprop-attribute>itemprop</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>
<li><code title=attr-subject><a href=#attr-subject>subject</a></code></li>
<li><code title=attr-tabindex><a href=#attr-tabindex>tabindex</a></code></li>
<li><code title=attr-title><a href=#the-title-attribute>title</a></code></li>
</ul><hr><p>Unless otherwise specified, the following <a href=#event-handler-content-attributes>event handler
Expand Down Expand Up @@ -42046,7 +42046,7 @@ interface <dfn>DataGridListener</dfn> {
<p>Properties don't have to be given as descendants of the element
with the <code title=attr-item><a href=#items:-the-item-attribute>item</a></code> attribute. They can be
associated with a specific <a href=#concept-item title=concept-item>item</a>
using the <code title=attr-subject><a href=#attr-subject>subject</a></code> attribute, which
using the <code title=attr-itemfor><a href=#attr-itemfor>itemfor</a></code> attribute, which
takes the ID of the element with the <code title=attr-item><a href=#items:-the-item-attribute>item</a></code> attribute.</p>

<div class=example>
Expand All @@ -42055,10 +42055,10 @@ interface <dfn>DataGridListener</dfn> {
properties are separated from their <a href=#concept-item title=concept-item>items</a>:</p>

<pre>&lt;div item id="amanda"&gt;&lt;/div&gt;
&lt;p&gt;Name: &lt;span subject="amanda" itemprop="name"&gt;Amanda&lt;/span&gt;&lt;/p&gt;
&lt;div subject="amanda" itemprop="band" item id="jazzband"&gt;&lt;/div&gt;
&lt;p&gt;Band: &lt;span subject="jazzband" itemprop="name"&gt;Jazz Band&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Size: &lt;span subject="jazzband" itemprop="size"&gt;12&lt;/span&gt; players&lt;/p&gt;</pre>
&lt;p&gt;Name: &lt;span itemfor="amanda" itemprop="name"&gt;Amanda&lt;/span&gt;&lt;/p&gt;
&lt;div itemfor="amanda" itemprop="band" item id="jazzband"&gt;&lt;/div&gt;
&lt;p&gt;Band: &lt;span itemfor="jazzband" itemprop="name"&gt;Jazz Band&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Size: &lt;span itemfor="jazzband" itemprop="size"&gt;12&lt;/span&gt; players&lt;/p&gt;</pre>

<p>This gives the same result as the previous example. The first
item has two properties, "name", set to "Amanda", and "band", set
Expand Down Expand Up @@ -42463,35 +42463,35 @@ document.body.appendChild(outer);</pre>

<h4 id=associating-names-with-items><span class=secno>5.2.3 </span>Associating names with items</h4>

<p>The <dfn id=attr-subject title=attr-subject><code>subject</code></dfn>
<p>The <dfn id=attr-itemfor title=attr-itemfor><code>itemfor</code></dfn>
attribute may be specified on any <a href=#html-elements title="HTML elements">HTML
element</a> to associate the element with an element with an
<code title=attr-item><a href=#items:-the-item-attribute>item</a></code> attribute. If the <code title=attr-subject><a href=#attr-subject>subject</a></code> attribute is specified, the
<code title=attr-item><a href=#items:-the-item-attribute>item</a></code> attribute. If the <code title=attr-itemfor><a href=#attr-itemfor>itemfor</a></code> attribute is specified, the
attribute's value must be the ID of an element with an <code title=attr-item><a href=#items:-the-item-attribute>item</a></code> attribute, in the same
<code>Document</code> as the element with the <code title=attr-subject><a href=#attr-subject>subject</a></code> attribute.</p>
<code>Document</code> as the element with the <code title=attr-itemfor><a href=#attr-itemfor>itemfor</a></code> attribute.</p>

<p>An element's <dfn id=concept-item-corresponding title=concept-item-corresponding>corresponding item</dfn> is
determined by its position in the DOM and by any <code title=attr-subject><a href=#attr-subject>subject</a></code> attributes on the element, and
determined by its position in the DOM and by any <code title=attr-itemfor><a href=#attr-itemfor>itemfor</a></code> attributes on the element, and
is defined as follows:</p>

<dl><dt>If the element has a <code title=attr-subject><a href=#attr-subject>subject</a></code>
<dl><dt>If the element has a <code title=attr-itemfor><a href=#attr-itemfor>itemfor</a></code>
attribute</dt>

<dd><p>If there is an element in the document with an ID equal to
the value of the <code title=attr-subject><a href=#attr-subject>subject</a></code>
the value of the <code title=attr-itemfor><a href=#attr-itemfor>itemfor</a></code>
attribute, and if the first such element has an <code title=attr-item><a href=#items:-the-item-attribute>item</a></code> attribute specified, then that
element is the <a href=#concept-item-corresponding title=concept-item-corresponding>corresponding
item</a>. Otherwise, there is no <a href=#concept-item-corresponding title=concept-item-corresponding>corresponding
item</a>.</dd>

<dt>If the element has no <code title=attr-subject><a href=#attr-subject>subject</a></code>
<dt>If the element has no <code title=attr-itemfor><a href=#attr-itemfor>itemfor</a></code>
attribute but does have an ancestor with an <code title=attr-item><a href=#items:-the-item-attribute>item</a></code> attribute specified</dt>

<dd><p>The nearest ancestor element with the <code title=attr-item><a href=#items:-the-item-attribute>item</a></code> attribute specified is the element's
<a href=#concept-item-corresponding title=concept-item-corresponding>corresponding
item</a>.</dd>

<dt>If the element has neither <code title=attr-subject><a href=#attr-subject>subject</a></code> attribute nor an ancestor with
<dt>If the element has neither <code title=attr-itemfor><a href=#attr-itemfor>itemfor</a></code> attribute nor an ancestor with
an <code title=attr-item><a href=#items:-the-item-attribute>item</a></code> attribute specified</dt>

<dd><p>The element has no <a href=#concept-item-corresponding title=concept-item-corresponding>corresponding
Expand Down Expand Up @@ -42760,8 +42760,8 @@ document.body.appendChild(outer);</pre>
<dd><p>The attribute must act the same as the element's
<code>textContent</code> attribute.</dd>

</dl><p>The <dfn id=dom-subject title=dom-subject><code>subject</code></dfn> DOM
attribute on elements must <a href=#reflect>reflect</a> the element's <code title=attr-subject><a href=#attr-subject>subject</a></code> content attribute.</p>
</dl><p>The <dfn id=dom-subject title=dom-subject><code>itemfor</code></dfn> DOM
attribute on elements must <a href=#reflect>reflect</a> the element's <code title=attr-itemfor><a href=#attr-itemfor>itemfor</a></code> content attribute.</p>

</div>

Expand Down
34 changes: 17 additions & 17 deletions source
Expand Up @@ -7688,12 +7688,12 @@ interface <dfn>HTMLUnknownElement</dfn> : <span>HTMLElement</span> { };</pre>
<li><code title="attr-draggable">draggable</code></li>
<li><code title="attr-id">id</code></li>
<li><code title="attr-item">item</code></li>
<li><code title="attr-itemfor">itemfor</code></li>
<li><code title="attr-itemprop">itemprop</code></li>
<li><code title="attr-hidden">hidden</code></li>
<li><code title="attr-lang">lang</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>
<li><code title="attr-tabindex">tabindex</code></li>
<li><code title="attr-title">title</code></li>
</ul>
Expand Down Expand Up @@ -47079,7 +47079,7 @@ interface <dfn>DataGridListener</dfn> {
<p>Properties don't have to be given as descendants of the element
with the <code title="attr-item">item</code> attribute. They can be
associated with a specific <span title="concept-item">item</span>
using the <code title="attr-subject">subject</code> attribute, which
using the <code title="attr-itemfor">itemfor</code> attribute, which
takes the ID of the element with the <code
title="attr-item">item</code> attribute.</p>

Expand All @@ -47090,10 +47090,10 @@ interface <dfn>DataGridListener</dfn> {
title="concept-item">items</span>:</p>

<pre>&lt;div item id="amanda">&lt;/div>
&lt;p>Name: &lt;span subject="amanda" itemprop="name">Amanda&lt;/span>&lt;/p>
&lt;div subject="amanda" itemprop="band" item id="jazzband">&lt;/div>
&lt;p>Band: &lt;span subject="jazzband" itemprop="name">Jazz Band&lt;/span>&lt;/p>
&lt;p>Size: &lt;span subject="jazzband" itemprop="size">12&lt;/span> players&lt;/p></pre>
&lt;p>Name: &lt;span itemfor="amanda" itemprop="name">Amanda&lt;/span>&lt;/p>
&lt;div itemfor="amanda" itemprop="band" item id="jazzband">&lt;/div>
&lt;p>Band: &lt;span itemfor="jazzband" itemprop="name">Jazz Band&lt;/span>&lt;/p>
&lt;p>Size: &lt;span itemfor="jazzband" itemprop="size">12&lt;/span> players&lt;/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
Expand Down Expand Up @@ -47539,29 +47539,29 @@ document.body.appendChild(outer);</pre>

<h4>Associating names with items</h4>

<p>The <dfn title="attr-subject"><code>subject</code></dfn>
<p>The <dfn title="attr-itemfor"><code>itemfor</code></dfn>
attribute may be specified on any <span title="HTML elements">HTML
element</span> to associate the element with an element with an
<code title="attr-item">item</code> attribute. If the <code
title="attr-subject">subject</code> attribute is specified, the
title="attr-itemfor">itemfor</code> attribute is specified, the
attribute's value must be the ID of an element with an <code
title="attr-item">item</code> attribute, in the same
<code>Document</code> as the element with the <code
title="attr-subject">subject</code> attribute.</p>
title="attr-itemfor">itemfor</code> attribute.</p>

<p>An element's <dfn
title="concept-item-corresponding">corresponding item</dfn> is
determined by its position in the DOM and by any <code
title="attr-subject">subject</code> attributes on the element, and
title="attr-itemfor">itemfor</code> attributes on the element, and
is defined as follows:</p>

<dl>

<dt>If the element has a <code title="attr-subject">subject</code>
<dt>If the element has a <code title="attr-itemfor">itemfor</code>
attribute</dt>

<dd><p>If there is an element in the document with an ID equal to
the value of the <code title="attr-subject">subject</code>
the value of the <code title="attr-itemfor">itemfor</code>
attribute, and if the first such element has an <code
title="attr-item">item</code> attribute specified, then that
element is the <span
Expand All @@ -47570,7 +47570,7 @@ document.body.appendChild(outer);</pre>
title="concept-item-corresponding">corresponding
item</span>.</p></dd>

<dt>If the element has no <code title="attr-subject">subject</code>
<dt>If the element has no <code title="attr-itemfor">itemfor</code>
attribute but does have an ancestor with an <code
title="attr-item">item</code> attribute specified</dt>

Expand All @@ -47580,7 +47580,7 @@ document.body.appendChild(outer);</pre>
item</span>.</p></dd>

<dt>If the element has neither <code
title="attr-subject">subject</code> attribute nor an ancestor with
title="attr-itemfor">itemfor</code> attribute nor an ancestor with
an <code title="attr-item">item</code> attribute specified</dt>

<dd><p>The element has no <span
Expand Down Expand Up @@ -47894,9 +47894,9 @@ document.body.appendChild(outer);</pre>

</dl>

<p>The <dfn title="dom-subject"><code>subject</code></dfn> DOM
<p>The <dfn title="dom-subject"><code>itemfor</code></dfn> DOM
attribute on elements must <span>reflect</span> the element's <code
title="attr-subject">subject</code> content attribute.</p>
title="attr-itemfor">itemfor</code> content attribute.</p>

</div>

Expand Down

0 comments on commit 40c1c42

Please sign in to comment.