Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (1) Consistency between getItems() and getElementsByClassName()
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=14444

git-svn-id: http://svn.whatwg.org/webapps@6680 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 13, 2011
1 parent aee8486 commit b4ecff4
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 40 deletions.
27 changes: 14 additions & 13 deletions complete.html
Expand Up @@ -58264,7 +58264,7 @@ <h3 id=microdata-dom-api><span class=secno>5.3 </span>Microdata DOM API</h3>

<dd>

<p>Returns a <code><a href=#nodelist>NodeList</a></code> of the elements in the <code><a href=#document>Document</a></code> that create <a href=#concept-item title=concept-item>items</a>, that are not part of other <a href=#concept-item title=concept-item>items</a>, and that are of one of the types given in the argument, if any are listed.</p>
<p>Returns a <code><a href=#nodelist>NodeList</a></code> of the elements in the <code><a href=#document>Document</a></code> that create <a href=#concept-item title=concept-item>items</a>, that are not part of other <a href=#concept-item title=concept-item>items</a>, and that are of the types given in the argument, if any are listed.</p>

<p>The <var title="">types</var> argument is interpreted as a space-separated list of types.</p>

Expand Down Expand Up @@ -58302,22 +58302,23 @@ <h3 id=microdata-dom-api><span class=secno>5.3 </span>Microdata DOM API</h3>
representing types. When called, the method must return a
<a href=#live>live</a> <code><a href=#nodelist>NodeList</a></code> object containing all the
elements in the document, in <a href=#tree-order>tree order</a>, that are each
<a href=#top-level-microdata-items>top-level microdata items</a> with one of their <a href=#item-types title="item types">types</a> equal to one of the types specified
in that argument, having obtained the types by <a href=#split-a-string-on-spaces title="split a
string on spaces">splitting the string on spaces</a>. If there
are no tokens specified in the argument, or if the argument is
missing, then the method must return a <code><a href=#nodelist>NodeList</a></code>
containing all the <a href=#top-level-microdata-items>top-level microdata items</a> in the
document. When the method is invoked on a <code><a href=#document>Document</a></code>
object again with the same argument, the user agent may return the
same object as the object returned by the earlier call. In other
cases, a new <code><a href=#nodelist>NodeList</a></code> object must be returned.</p>
<a href=#top-level-microdata-items>top-level microdata items</a> whose <a href=#item-types title="item
types">types</a> include all the types specified in the method's
argument, having obtained the types by <a href=#split-a-string-on-spaces title="split a string
on spaces">splitting the string on spaces</a>. If there are no
tokens specified in the argument, or if the argument is missing,
then the method must return a <code><a href=#nodelist>NodeList</a></code> containing all
the <a href=#top-level-microdata-items>top-level microdata items</a> in the document. When the
method is invoked on a <code><a href=#document>Document</a></code> object again with the
same argument, the user agent may return the same object as the
object returned by the earlier call. In other cases, a new
<code><a href=#nodelist>NodeList</a></code> object must be returned.</p>

<p class=note>Since a token in the <code title=attr-itemtype><a href=#attr-itemtype>itemtype</a></code> attribute that is not an
<a href=#absolute-url>absolute URL</a> is not considered to be one of the item's
<a href=#item-types>item types</a>, any tokens passed to <code title=dom-document-getItems><a href=#dom-document-getitems>getItems()</a></code> that are not
themselves <a href=#absolute-url title="absolute URL">absolute URLs</a> will not
find any items.</p>
themselves <a href=#absolute-url title="absolute URL">absolute URLs</a> will
cause the method to return an empty <code><a href=#nodelist>NodeList</a></code>.</p>

<p>The <dfn id=dom-itemscope title=dom-itemScope><code>itemScope</code></dfn> IDL
attribute on <a href=#html-elements>HTML elements</a> must <a href=#reflect>reflect</a>
Expand Down
27 changes: 14 additions & 13 deletions index
Expand Up @@ -58264,7 +58264,7 @@ document.body.appendChild(outer);</pre>

<dd>

<p>Returns a <code><a href=#nodelist>NodeList</a></code> of the elements in the <code><a href=#document>Document</a></code> that create <a href=#concept-item title=concept-item>items</a>, that are not part of other <a href=#concept-item title=concept-item>items</a>, and that are of one of the types given in the argument, if any are listed.</p>
<p>Returns a <code><a href=#nodelist>NodeList</a></code> of the elements in the <code><a href=#document>Document</a></code> that create <a href=#concept-item title=concept-item>items</a>, that are not part of other <a href=#concept-item title=concept-item>items</a>, and that are of the types given in the argument, if any are listed.</p>

<p>The <var title="">types</var> argument is interpreted as a space-separated list of types.</p>

Expand Down Expand Up @@ -58302,22 +58302,23 @@ document.body.appendChild(outer);</pre>
representing types. When called, the method must return a
<a href=#live>live</a> <code><a href=#nodelist>NodeList</a></code> object containing all the
elements in the document, in <a href=#tree-order>tree order</a>, that are each
<a href=#top-level-microdata-items>top-level microdata items</a> with one of their <a href=#item-types title="item types">types</a> equal to one of the types specified
in that argument, having obtained the types by <a href=#split-a-string-on-spaces title="split a
string on spaces">splitting the string on spaces</a>. If there
are no tokens specified in the argument, or if the argument is
missing, then the method must return a <code><a href=#nodelist>NodeList</a></code>
containing all the <a href=#top-level-microdata-items>top-level microdata items</a> in the
document. When the method is invoked on a <code><a href=#document>Document</a></code>
object again with the same argument, the user agent may return the
same object as the object returned by the earlier call. In other
cases, a new <code><a href=#nodelist>NodeList</a></code> object must be returned.</p>
<a href=#top-level-microdata-items>top-level microdata items</a> whose <a href=#item-types title="item
types">types</a> include all the types specified in the method's
argument, having obtained the types by <a href=#split-a-string-on-spaces title="split a string
on spaces">splitting the string on spaces</a>. If there are no
tokens specified in the argument, or if the argument is missing,
then the method must return a <code><a href=#nodelist>NodeList</a></code> containing all
the <a href=#top-level-microdata-items>top-level microdata items</a> in the document. When the
method is invoked on a <code><a href=#document>Document</a></code> object again with the
same argument, the user agent may return the same object as the
object returned by the earlier call. In other cases, a new
<code><a href=#nodelist>NodeList</a></code> object must be returned.</p>

<p class=note>Since a token in the <code title=attr-itemtype><a href=#attr-itemtype>itemtype</a></code> attribute that is not an
<a href=#absolute-url>absolute URL</a> is not considered to be one of the item's
<a href=#item-types>item types</a>, any tokens passed to <code title=dom-document-getItems><a href=#dom-document-getitems>getItems()</a></code> that are not
themselves <a href=#absolute-url title="absolute URL">absolute URLs</a> will not
find any items.</p>
themselves <a href=#absolute-url title="absolute URL">absolute URLs</a> will
cause the method to return an empty <code><a href=#nodelist>NodeList</a></code>.</p>

<p>The <dfn id=dom-itemscope title=dom-itemScope><code>itemScope</code></dfn> IDL
attribute on <a href=#html-elements>HTML elements</a> must <a href=#reflect>reflect</a>
Expand Down
28 changes: 14 additions & 14 deletions source
Expand Up @@ -65745,7 +65745,7 @@ partial interface <span>HTMLElement</span> {

<dd>

<p>Returns a <code>NodeList</code> of the elements in the <code>Document</code> that create <span title="concept-item">items</span>, that are not part of other <span title="concept-item">items</span>, and that are of one of the types given in the argument, if any are listed.</p>
<p>Returns a <code>NodeList</code> of the elements in the <code>Document</code> that create <span title="concept-item">items</span>, that are not part of other <span title="concept-item">items</span>, and that are of the types given in the argument, if any are listed.</p>

<p>The <var title="">types</var> argument is interpreted as a space-separated list of types.</p>

Expand Down Expand Up @@ -65791,25 +65791,25 @@ partial interface <span>HTMLElement</span> {
representing types. When called, the method must return a
<span>live</span> <code>NodeList</code> object containing all the
elements in the document, in <span>tree order</span>, that are each
<span>top-level microdata items</span> with one of their <span
title="item types">types</span> equal to one of the types specified
in that argument, having obtained the types by <span title="split a
string on spaces">splitting the string on spaces</span>. If there
are no tokens specified in the argument, or if the argument is
missing, then the method must return a <code>NodeList</code>
containing all the <span>top-level microdata items</span> in the
document. When the method is invoked on a <code>Document</code>
object again with the same argument, the user agent may return the
same object as the object returned by the earlier call. In other
cases, a new <code>NodeList</code> object must be returned.</p>
<span>top-level microdata items</span> whose <span title="item
types">types</span> include all the types specified in the method's
argument, having obtained the types by <span title="split a string
on spaces">splitting the string on spaces</span>. If there are no
tokens specified in the argument, or if the argument is missing,
then the method must return a <code>NodeList</code> containing all
the <span>top-level microdata items</span> in the document. When the
method is invoked on a <code>Document</code> object again with the
same argument, the user agent may return the same object as the
object returned by the earlier call. In other cases, a new
<code>NodeList</code> object must be returned.</p>

<p class="note">Since a token in the <code
title="attr-itemtype">itemtype</code> attribute that is not an
<span>absolute URL</span> is not considered to be one of the item's
<span>item types</span>, any tokens passed to <code
title="dom-document-getItems">getItems()</code> that are not
themselves <span title="absolute URL">absolute URLs</span> will not
find any items.</p>
themselves <span title="absolute URL">absolute URLs</span> will
cause the method to return an empty <code>NodeList</code>.</p>

<p>The <dfn title="dom-itemScope"><code>itemScope</code></dfn> IDL
attribute on <span>HTML elements</span> must <span>reflect</span>
Expand Down

0 comments on commit b4ecff4

Please sign in to comment.