[html5] r6680 - [giow] (1) Consistency between getItems() and getElementsByClassName() Fixing ht [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Oct 13 10:03:25 PDT 2011


Author: ianh
Date: 2011-10-13 10:03:23 -0700 (Thu, 13 Oct 2011)
New Revision: 6680

Modified:
   complete.html
   index
   source
Log:
[giow] (1) Consistency between getItems() and getElementsByClassName()
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=14444

Modified: complete.html
===================================================================
--- complete.html	2011-10-13 00:38:08 UTC (rev 6679)
+++ complete.html	2011-10-13 17:03:23 UTC (rev 6680)
@@ -58264,7 +58264,7 @@
 
    <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>
 
@@ -58302,22 +58302,23 @@
   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>

Modified: index
===================================================================
--- index	2011-10-13 00:38:08 UTC (rev 6679)
+++ index	2011-10-13 17:03:23 UTC (rev 6680)
@@ -58264,7 +58264,7 @@
 
    <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>
 
@@ -58302,22 +58302,23 @@
   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>

Modified: source
===================================================================
--- source	2011-10-13 00:38:08 UTC (rev 6679)
+++ source	2011-10-13 17:03:23 UTC (rev 6680)
@@ -65745,7 +65745,7 @@
 
    <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>
 
@@ -65791,25 +65791,25 @@
   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>




More information about the Commit-Watchers mailing list