Skip to content

Commit

Permalink
[giow] (3) require that document.images and friends always return the…
Browse files Browse the repository at this point in the history
… 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

git-svn-id: http://svn.whatwg.org/webapps@8765 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 12, 2014
1 parent 7d6be1f commit 20505c7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions complete.html
Expand Up @@ -6126,28 +6126,28 @@ <h4 id=dom-tree-accessors>3.1.3 <dfn>DOM tree accessors</dfn></h4>

<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>

Expand Down
12 changes: 6 additions & 6 deletions index
Expand Up @@ -6126,28 +6126,28 @@ partial /*sealed*/ interface <dfn id=document>Document</dfn> {

<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>

Expand Down
12 changes: 6 additions & 6 deletions source
Expand Up @@ -9062,28 +9062,28 @@ partial /*sealed*/ interface <dfn>Document</dfn> {

<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>

Expand Down

0 comments on commit 20505c7

Please sign in to comment.