Skip to content

Commit

Permalink
[giow] (3) Update the list of elements that support name='' attribute…
Browse files Browse the repository at this point in the history
…s for the purposes of document.all (mostly using the IE/Firefox lists, which are nearly identical, and a superset of Safari/Chrome)

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=24622
Affected topics: DOM APIs

git-svn-id: http://svn.whatwg.org/webapps@8501 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 21, 2014
1 parent 605fd7f commit d2d79da
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 27 deletions.
35 changes: 26 additions & 9 deletions complete.html
Expand Up @@ -7588,9 +7588,10 @@ <h5 id=htmlallcollection-0><span class=secno>2.7.2.1 </span>HTMLAllCollection</h
<dd>
<p>Returns the item with <a href=#concept-id title=concept-id>ID</a> or name <var title="">name</var> from the collection.</p>
<p>If there are multiple matching items, then an <code><a href=#htmlcollection>HTMLCollection</a></code> object containing all those elements is returned.</p>
<p>Only <code><a href=#the-a-element>a</a></code>, <code><a href=#the-applet-element>applet</a></code>, <code><a href=#the-area-element>area</a></code>, <code><a href=#the-embed-element>embed</a></code>,
<code><a href=#the-form-element>form</a></code>, <code><a href=#frame>frame</a></code>, <code><a href=#frameset>frameset</a></code>, <code><a href=#the-iframe-element>iframe</a></code>,
<code><a href=#the-img-element>img</a></code>, and <code><a href=#the-object-element>object</a></code> elements can have a name for the purpose of this
<!-- this list only includes conforming elements: -->
<p>Only <code><a href=#the-a-element>a</a></code>, <code><a href=#the-button-element>button</a></code>, <code><a href=#the-form-element>form</a></code>, <code><a href=#the-iframe-element>iframe</a></code>,
<code><a href=#the-input-element>input</a></code>, <code><a href=#the-map-element>map</a></code>, <code><a href=#the-meta-element>meta</a></code>, <code><a href=#the-object-element>object</a></code>,
<code><a href=#the-select-element>select</a></code>, and <code><a href=#the-textarea-element>textarea</a></code> elements can have a name for the purpose of this
method; their name is given by the value of their <code title="">name</code> attribute.</p>
</dd>

Expand All @@ -7599,11 +7600,29 @@ <h5 id=htmlallcollection-0><span class=secno>2.7.2.1 </span>HTMLAllCollection</h
<p>The object's <a href=#supported-property-indices>supported property indices</a> are as defined for
<code><a href=#htmlcollection>HTMLCollection</a></code> objects.</p>

<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2837 -->
<p>The following elements are <dfn id=all-named-elements>"all"-named elements</dfn>:
<code><a href=#the-a-element>a</a></code>, <!-- in some browsers -->
<code><a href=#the-applet-element>applet</a></code>,
<code><a href=#the-button-element>button</a></code>, <!-- in some browsers -->
<code><a href=#the-embed-element>embed</a></code>,
<code><a href=#the-form-element>form</a></code>,
<code><a href=#frame>frame</a></code>,
<code><a href=#frameset>frameset</a></code>,
<code><a href=#the-iframe-element>iframe</a></code>, <!-- in some browsers -->
<code><a href=#the-img-element>img</a></code>,
<code><a href=#the-input-element>input</a></code>,
<!-- keygen? -->
<code><a href=#the-map-element>map</a></code>, <!-- in some browsers -->
<code><a href=#the-meta-element>meta</a></code>, <!-- in some browsers -->
<code><a href=#the-object-element>object</a></code>,
<code><a href=#the-select-element>select</a></code>, and
<code><a href=#the-textarea-element>textarea</a></code> <!-- in some browsers -->
</p>

<p>The <a href=#supported-property-names>supported property names</a> consist of the non-empty values of all the <code title=attr-id><a href=#the-id-attribute>id</a></code> attributes of all the elements <a href=#represented-by-the-collection>represented by the
collection</a>, and the non-empty values of all the <code title="">name</code> attributes of all the
<code><a href=#the-a-element>a</a></code>, <code><a href=#the-applet-element>applet</a></code>, <code><a href=#the-area-element>area</a></code>, <code><a href=#the-embed-element>embed</a></code>, <code><a href=#the-form-element>form</a></code>,
<code><a href=#frame>frame</a></code>, <code><a href=#frameset>frameset</a></code>, <code><a href=#the-iframe-element>iframe</a></code>, <code><a href=#the-img-element>img</a></code>, and
<code><a href=#the-object-element>object</a></code> elements <a href=#represented-by-the-collection>represented by the collection</a>, in <a href=#tree-order>tree
<a href=#all-named-elements>"all"-named elements</a> <a href=#represented-by-the-collection>represented by the collection</a>, in <a href=#tree-order>tree
order</a>, ignoring later duplicates, with the <code title=attr-id><a href=#the-id-attribute>id</a></code> of an element
preceding its <code title="">name</code> if it contributes both, they differ from each other, and neither
is the duplicate of an earlier entry.</p>
Expand All @@ -7620,9 +7639,7 @@ <h5 id=htmlallcollection-0><span class=secno>2.7.2.1 </span>HTMLAllCollection</h
filter matches only elements that already match the filter of the <code><a href=#htmlallcollection>HTMLAllCollection</a></code>
object on which the method was invoked and that are either:</p>

<ul><li><code><a href=#the-a-element>a</a></code>, <code><a href=#the-applet-element>applet</a></code>, <code><a href=#the-area-element>area</a></code>, <code><a href=#the-embed-element>embed</a></code>,
<code><a href=#the-form-element>form</a></code>, <code><a href=#frame>frame</a></code>, <code><a href=#frameset>frameset</a></code>, <code><a href=#the-iframe-element>iframe</a></code>,
<code><a href=#the-img-element>img</a></code>, or <code><a href=#the-object-element>object</a></code> elements with a <code title="">name</code> attribute
<ul><li><a href=#all-named-elements>"all"-named elements</a> with a <code title="">name</code> attribute
equal to <var title="">name</var>, or,</li>

<li>elements with an <a href=#concept-id title=concept-id>ID</a> equal to <var title="">name</var>.</li>
Expand Down
35 changes: 26 additions & 9 deletions index
Expand Up @@ -7588,9 +7588,10 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<dd>
<p>Returns the item with <a href=#concept-id title=concept-id>ID</a> or name <var title="">name</var> from the collection.</p>
<p>If there are multiple matching items, then an <code><a href=#htmlcollection>HTMLCollection</a></code> object containing all those elements is returned.</p>
<p>Only <code><a href=#the-a-element>a</a></code>, <code><a href=#the-applet-element>applet</a></code>, <code><a href=#the-area-element>area</a></code>, <code><a href=#the-embed-element>embed</a></code>,
<code><a href=#the-form-element>form</a></code>, <code><a href=#frame>frame</a></code>, <code><a href=#frameset>frameset</a></code>, <code><a href=#the-iframe-element>iframe</a></code>,
<code><a href=#the-img-element>img</a></code>, and <code><a href=#the-object-element>object</a></code> elements can have a name for the purpose of this
<!-- this list only includes conforming elements: -->
<p>Only <code><a href=#the-a-element>a</a></code>, <code><a href=#the-button-element>button</a></code>, <code><a href=#the-form-element>form</a></code>, <code><a href=#the-iframe-element>iframe</a></code>,
<code><a href=#the-input-element>input</a></code>, <code><a href=#the-map-element>map</a></code>, <code><a href=#the-meta-element>meta</a></code>, <code><a href=#the-object-element>object</a></code>,
<code><a href=#the-select-element>select</a></code>, and <code><a href=#the-textarea-element>textarea</a></code> elements can have a name for the purpose of this
method; their name is given by the value of their <code title="">name</code> attribute.</p>
</dd>

Expand All @@ -7599,11 +7600,29 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<p>The object's <a href=#supported-property-indices>supported property indices</a> are as defined for
<code><a href=#htmlcollection>HTMLCollection</a></code> objects.</p>

<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2837 -->
<p>The following elements are <dfn id=all-named-elements>"all"-named elements</dfn>:
<code><a href=#the-a-element>a</a></code>, <!-- in some browsers -->
<code><a href=#the-applet-element>applet</a></code>,
<code><a href=#the-button-element>button</a></code>, <!-- in some browsers -->
<code><a href=#the-embed-element>embed</a></code>,
<code><a href=#the-form-element>form</a></code>,
<code><a href=#frame>frame</a></code>,
<code><a href=#frameset>frameset</a></code>,
<code><a href=#the-iframe-element>iframe</a></code>, <!-- in some browsers -->
<code><a href=#the-img-element>img</a></code>,
<code><a href=#the-input-element>input</a></code>,
<!-- keygen? -->
<code><a href=#the-map-element>map</a></code>, <!-- in some browsers -->
<code><a href=#the-meta-element>meta</a></code>, <!-- in some browsers -->
<code><a href=#the-object-element>object</a></code>,
<code><a href=#the-select-element>select</a></code>, and
<code><a href=#the-textarea-element>textarea</a></code> <!-- in some browsers -->
</p>

<p>The <a href=#supported-property-names>supported property names</a> consist of the non-empty values of all the <code title=attr-id><a href=#the-id-attribute>id</a></code> attributes of all the elements <a href=#represented-by-the-collection>represented by the
collection</a>, and the non-empty values of all the <code title="">name</code> attributes of all the
<code><a href=#the-a-element>a</a></code>, <code><a href=#the-applet-element>applet</a></code>, <code><a href=#the-area-element>area</a></code>, <code><a href=#the-embed-element>embed</a></code>, <code><a href=#the-form-element>form</a></code>,
<code><a href=#frame>frame</a></code>, <code><a href=#frameset>frameset</a></code>, <code><a href=#the-iframe-element>iframe</a></code>, <code><a href=#the-img-element>img</a></code>, and
<code><a href=#the-object-element>object</a></code> elements <a href=#represented-by-the-collection>represented by the collection</a>, in <a href=#tree-order>tree
<a href=#all-named-elements>"all"-named elements</a> <a href=#represented-by-the-collection>represented by the collection</a>, in <a href=#tree-order>tree
order</a>, ignoring later duplicates, with the <code title=attr-id><a href=#the-id-attribute>id</a></code> of an element
preceding its <code title="">name</code> if it contributes both, they differ from each other, and neither
is the duplicate of an earlier entry.</p>
Expand All @@ -7620,9 +7639,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
filter matches only elements that already match the filter of the <code><a href=#htmlallcollection>HTMLAllCollection</a></code>
object on which the method was invoked and that are either:</p>

<ul><li><code><a href=#the-a-element>a</a></code>, <code><a href=#the-applet-element>applet</a></code>, <code><a href=#the-area-element>area</a></code>, <code><a href=#the-embed-element>embed</a></code>,
<code><a href=#the-form-element>form</a></code>, <code><a href=#frame>frame</a></code>, <code><a href=#frameset>frameset</a></code>, <code><a href=#the-iframe-element>iframe</a></code>,
<code><a href=#the-img-element>img</a></code>, or <code><a href=#the-object-element>object</a></code> elements with a <code title="">name</code> attribute
<ul><li><a href=#all-named-elements>"all"-named elements</a> with a <code title="">name</code> attribute
equal to <var title="">name</var>, or,</li>

<li>elements with an <a href=#concept-id title=concept-id>ID</a> equal to <var title="">name</var>.</li>
Expand Down
35 changes: 26 additions & 9 deletions source
Expand Up @@ -7040,9 +7040,10 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<dd>
<p>Returns the item with <span data-x="concept-id">ID</span> or name <var data-x="">name</var> from the collection.</p>
<p>If there are multiple matching items, then an <code>HTMLCollection</code> object containing all those elements is returned.</p>
<p>Only <code>a</code>, <code>applet</code>, <code>area</code>, <code>embed</code>,
<code>form</code>, <code>frame</code>, <code>frameset</code>, <code>iframe</code>,
<code>img</code>, and <code>object</code> elements can have a name for the purpose of this
<!-- this list only includes conforming elements: -->
<p>Only <code>a</code>, <code>button</code>, <code>form</code>, <code>iframe</code>,
<code>input</code>, <code>map</code>, <code>meta</code>, <code>object</code>,
<code>select</code>, and <code>textarea</code> elements can have a name for the purpose of this
method; their name is given by the value of their <code data-x="">name</code> attribute.</p>
</dd>

Expand All @@ -7053,12 +7054,30 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<p>The object's <span>supported property indices</span> are as defined for
<code>HTMLCollection</code> objects.</p>

<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2837 -->
<p>The following elements are <dfn>"all"-named elements</dfn>:
<code>a</code>, <!-- in some browsers -->
<code>applet</code>,
<code>button</code>, <!-- in some browsers -->
<code>embed</code>,
<code>form</code>,
<code>frame</code>,
<code>frameset</code>,
<code>iframe</code>, <!-- in some browsers -->
<code>img</code>,
<code>input</code>,
<!-- keygen? -->
<code>map</code>, <!-- in some browsers -->
<code>meta</code>, <!-- in some browsers -->
<code>object</code>,
<code>select</code>, and
<code>textarea</code> <!-- in some browsers -->
</p>

<p>The <span>supported property names</span> consist of the non-empty values of all the <code
data-x="attr-id">id</code> attributes of all the elements <span>represented by the
collection</span>, and the non-empty values of all the <code data-x="">name</code> attributes of all the
<code>a</code>, <code>applet</code>, <code>area</code>, <code>embed</code>, <code>form</code>,
<code>frame</code>, <code>frameset</code>, <code>iframe</code>, <code>img</code>, and
<code>object</code> elements <span>represented by the collection</span>, in <span>tree
<span>"all"-named elements</span> <span>represented by the collection</span>, in <span>tree
order</span>, ignoring later duplicates, with the <code data-x="attr-id">id</code> of an element
preceding its <code data-x="">name</code> if it contributes both, they differ from each other, and neither
is the duplicate of an earlier entry.</p>
Expand All @@ -7081,9 +7100,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d

<ul>

<li><code>a</code>, <code>applet</code>, <code>area</code>, <code>embed</code>,
<code>form</code>, <code>frame</code>, <code>frameset</code>, <code>iframe</code>,
<code>img</code>, or <code>object</code> elements with a <code data-x="">name</code> attribute
<li><span>"all"-named elements</span> with a <code data-x="">name</code> attribute
equal to <var data-x="">name</var>, or,</li>

<li>elements with an <span data-x="concept-id">ID</span> equal to <var data-x="">name</var>.</li>
Expand Down

0 comments on commit d2d79da

Please sign in to comment.