[html5] r8765 - [giow] (3) require that document.images and friends always return the same objec [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Sep 12 10:50:51 PDT 2014


Author: ianh
Date: 2014-09-12 10:50:46 -0700 (Fri, 12 Sep 2014)
New Revision: 8765

Modified:
   complete.html
   index
   source
Log:
[giow] (3) require that document.images and friends always return the same object. This'll be great until either we find that browsers don't always return the same object or until someone notices that this implies that two different Documents will return the same object.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=26566
Affected topics: DOM APIs

Modified: complete.html
===================================================================
--- complete.html	2014-09-12 17:48:40 UTC (rev 8764)
+++ complete.html	2014-09-12 17:50:46 UTC (rev 8765)
@@ -6126,28 +6126,28 @@
 
   <p>The <dfn id=dom-document-images><code>images</code></dfn> attribute must return an
   <code id=dom-tree-accessors:htmlcollection-6><a href=#htmlcollection>HTMLCollection</a></code> rooted at the <code id=dom-tree-accessors:document-6><a href=#document>Document</a></code> node, whose filter matches only
-  <code id=dom-tree-accessors:the-img-element-2><a href=#the-img-element>img</a></code> elements.</p>
+  <code id=dom-tree-accessors:the-img-element-2><a href=#the-img-element>img</a></code> elements. The same object must be returned each time.</p>
 
   <p>The <dfn id=dom-document-embeds><code>embeds</code></dfn> attribute must return an
   <code id=dom-tree-accessors:htmlcollection-7><a href=#htmlcollection>HTMLCollection</a></code> rooted at the <code id=dom-tree-accessors:document-7><a href=#document>Document</a></code> node, whose filter matches only
-  <code id=dom-tree-accessors:the-embed-element-2><a href=#the-embed-element>embed</a></code> elements.</p>
+  <code id=dom-tree-accessors:the-embed-element-2><a href=#the-embed-element>embed</a></code> elements. The same object must be returned each time.</p>
 
   <p>The <dfn id=dom-document-plugins><code>plugins</code></dfn> attribute must return the
   same object as that returned by the <code id=dom-tree-accessors:dom-document-embeds-2><a href=#dom-document-embeds>embeds</a></code>
-  attribute.</p>
+  attribute. The same object must be returned each time.</p>
 
   <p>The <dfn id=dom-document-links><code>links</code></dfn> attribute must return an
   <code id=dom-tree-accessors:htmlcollection-8><a href=#htmlcollection>HTMLCollection</a></code> rooted at the <code id=dom-tree-accessors:document-8><a href=#document>Document</a></code> node, whose filter matches only
   <code id=dom-tree-accessors:the-a-element-2><a href=#the-a-element>a</a></code> elements with <code id=dom-tree-accessors:attr-hyperlink-href-2><a href=#attr-hyperlink-href>href</a></code> attributes and
-  <code id=dom-tree-accessors:the-area-element-2><a href=#the-area-element>area</a></code> elements with <code id=dom-tree-accessors:attr-hyperlink-href-3><a href=#attr-hyperlink-href>href</a></code> attributes.</p>
+  <code id=dom-tree-accessors:the-area-element-2><a href=#the-area-element>area</a></code> elements with <code id=dom-tree-accessors:attr-hyperlink-href-3><a href=#attr-hyperlink-href>href</a></code> attributes. The same object must be returned each time.</p>
 
   <p>The <dfn id=dom-document-forms><code>forms</code></dfn> attribute must return an
   <code id=dom-tree-accessors:htmlcollection-9><a href=#htmlcollection>HTMLCollection</a></code> rooted at the <code id=dom-tree-accessors:document-9><a href=#document>Document</a></code> node, whose filter matches only
-  <code id=dom-tree-accessors:the-form-element-2><a href=#the-form-element>form</a></code> elements.</p>
+  <code id=dom-tree-accessors:the-form-element-2><a href=#the-form-element>form</a></code> elements. The same object must be returned each time.</p>
 
   <p>The <dfn id=dom-document-scripts><code>scripts</code></dfn> attribute must return an
   <code id=dom-tree-accessors:htmlcollection-10><a href=#htmlcollection>HTMLCollection</a></code> rooted at the <code id=dom-tree-accessors:document-10><a href=#document>Document</a></code> node, whose filter matches only
-  <code id=dom-tree-accessors:the-script-element-2><a href=#the-script-element>script</a></code> elements.</p>
+  <code id=dom-tree-accessors:the-script-element-2><a href=#the-script-element>script</a></code> elements. The same object must be returned each time.</p>
 
   <hr>
 

Modified: index
===================================================================
--- index	2014-09-12 17:48:40 UTC (rev 8764)
+++ index	2014-09-12 17:50:46 UTC (rev 8765)
@@ -6126,28 +6126,28 @@
 
   <p>The <dfn id=dom-document-images><code>images</code></dfn> attribute must return an
   <code id=dom-tree-accessors:htmlcollection-6><a href=#htmlcollection>HTMLCollection</a></code> rooted at the <code id=dom-tree-accessors:document-6><a href=#document>Document</a></code> node, whose filter matches only
-  <code id=dom-tree-accessors:the-img-element-2><a href=#the-img-element>img</a></code> elements.</p>
+  <code id=dom-tree-accessors:the-img-element-2><a href=#the-img-element>img</a></code> elements. The same object must be returned each time.</p>
 
   <p>The <dfn id=dom-document-embeds><code>embeds</code></dfn> attribute must return an
   <code id=dom-tree-accessors:htmlcollection-7><a href=#htmlcollection>HTMLCollection</a></code> rooted at the <code id=dom-tree-accessors:document-7><a href=#document>Document</a></code> node, whose filter matches only
-  <code id=dom-tree-accessors:the-embed-element-2><a href=#the-embed-element>embed</a></code> elements.</p>
+  <code id=dom-tree-accessors:the-embed-element-2><a href=#the-embed-element>embed</a></code> elements. The same object must be returned each time.</p>
 
   <p>The <dfn id=dom-document-plugins><code>plugins</code></dfn> attribute must return the
   same object as that returned by the <code id=dom-tree-accessors:dom-document-embeds-2><a href=#dom-document-embeds>embeds</a></code>
-  attribute.</p>
+  attribute. The same object must be returned each time.</p>
 
   <p>The <dfn id=dom-document-links><code>links</code></dfn> attribute must return an
   <code id=dom-tree-accessors:htmlcollection-8><a href=#htmlcollection>HTMLCollection</a></code> rooted at the <code id=dom-tree-accessors:document-8><a href=#document>Document</a></code> node, whose filter matches only
   <code id=dom-tree-accessors:the-a-element-2><a href=#the-a-element>a</a></code> elements with <code id=dom-tree-accessors:attr-hyperlink-href-2><a href=#attr-hyperlink-href>href</a></code> attributes and
-  <code id=dom-tree-accessors:the-area-element-2><a href=#the-area-element>area</a></code> elements with <code id=dom-tree-accessors:attr-hyperlink-href-3><a href=#attr-hyperlink-href>href</a></code> attributes.</p>
+  <code id=dom-tree-accessors:the-area-element-2><a href=#the-area-element>area</a></code> elements with <code id=dom-tree-accessors:attr-hyperlink-href-3><a href=#attr-hyperlink-href>href</a></code> attributes. The same object must be returned each time.</p>
 
   <p>The <dfn id=dom-document-forms><code>forms</code></dfn> attribute must return an
   <code id=dom-tree-accessors:htmlcollection-9><a href=#htmlcollection>HTMLCollection</a></code> rooted at the <code id=dom-tree-accessors:document-9><a href=#document>Document</a></code> node, whose filter matches only
-  <code id=dom-tree-accessors:the-form-element-2><a href=#the-form-element>form</a></code> elements.</p>
+  <code id=dom-tree-accessors:the-form-element-2><a href=#the-form-element>form</a></code> elements. The same object must be returned each time.</p>
 
   <p>The <dfn id=dom-document-scripts><code>scripts</code></dfn> attribute must return an
   <code id=dom-tree-accessors:htmlcollection-10><a href=#htmlcollection>HTMLCollection</a></code> rooted at the <code id=dom-tree-accessors:document-10><a href=#document>Document</a></code> node, whose filter matches only
-  <code id=dom-tree-accessors:the-script-element-2><a href=#the-script-element>script</a></code> elements.</p>
+  <code id=dom-tree-accessors:the-script-element-2><a href=#the-script-element>script</a></code> elements. The same object must be returned each time.</p>
 
   <hr>
 

Modified: source
===================================================================
--- source	2014-09-12 17:48:40 UTC (rev 8764)
+++ source	2014-09-12 17:50:46 UTC (rev 8765)
@@ -9062,28 +9062,28 @@
 
   <p>The <dfn><code data-x="dom-document-images">images</code></dfn> attribute must return an
   <code>HTMLCollection</code> rooted at the <code>Document</code> node, whose filter matches only
-  <code>img</code> elements.</p>
+  <code>img</code> elements. The same object must be returned each time.</p>
 
   <p>The <dfn><code data-x="dom-document-embeds">embeds</code></dfn> attribute must return an
   <code>HTMLCollection</code> rooted at the <code>Document</code> node, whose filter matches only
-  <code>embed</code> elements.</p>
+  <code>embed</code> elements. The same object must be returned each time.</p>
 
   <p>The <dfn><code data-x="dom-document-plugins">plugins</code></dfn> attribute must return the
   same object as that returned by the <code data-x="dom-document-embeds">embeds</code>
-  attribute.</p>
+  attribute. The same object must be returned each time.</p>
 
   <p>The <dfn><code data-x="dom-document-links">links</code></dfn> attribute must return an
   <code>HTMLCollection</code> rooted at the <code>Document</code> node, whose filter matches only
   <code>a</code> elements with <code data-x="attr-hyperlink-href">href</code> attributes and
-  <code>area</code> elements with <code data-x="attr-hyperlink-href">href</code> attributes.</p>
+  <code>area</code> elements with <code data-x="attr-hyperlink-href">href</code> attributes. The same object must be returned each time.</p>
 
   <p>The <dfn><code data-x="dom-document-forms">forms</code></dfn> attribute must return an
   <code>HTMLCollection</code> rooted at the <code>Document</code> node, whose filter matches only
-  <code>form</code> elements.</p>
+  <code>form</code> elements. The same object must be returned each time.</p>
 
   <p>The <dfn><code data-x="dom-document-scripts">scripts</code></dfn> attribute must return an
   <code>HTMLCollection</code> rooted at the <code>Document</code> node, whose filter matches only
-  <code>script</code> elements.</p>
+  <code>script</code> elements. The same object must be returned each time.</p>
 
   <hr>
 



More information about the Commit-Watchers mailing list