Skip to content

Commit

Permalink
[giow] (2) Add <frame> and <frameset> to Window [[Get]] and getElemen…
Browse files Browse the repository at this point in the history
…tsByName().

git-svn-id: http://svn.whatwg.org/webapps@2650 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 13, 2009
1 parent 3ec3a2c commit 09192a4
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 34 deletions.
34 changes: 18 additions & 16 deletions index
Expand Up @@ -5331,8 +5331,9 @@ interface <dfn id=htmlcollection-0>HTMLCollection</dfn> {

<ul><li>It is an <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=#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>
element with a <code title="">name</code> attribute equal to <var title="">key</var>, or,</li>
<code>frame</code>, <code>frameset</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> element with a <code title="">name</code> attribute equal to <var title="">key</var>,
or,</li>

<li>It is an element with an ID <var title="">key</var>.</li>

Expand Down Expand Up @@ -6253,13 +6254,12 @@ interface <dfn id=htmldocument>HTMLDocument</dfn> {

<hr><p>The <dfn id=dom-document-getelementsbyname title=dom-document-getElementsByName><code>getElementsByName(<var title="">name</var>)</code></dfn> method takes a string <var title="">name</var>, and must return a live <code>NodeList</code>
containing all the <code><a href=#the-a-element>a</a></code>, <code><a href=#the-applet-element>applet</a></code>,
<code><a href=#the-button-element>button</a></code>, <code><a href=#the-form-element>form</a></code>, <!-- frame? frameset?
XXX--><code><a href=#the-iframe-element>iframe</a></code>, <code><a href=#the-img-element>img</a></code>, <code><a href=#the-input-element>input</a></code>,
<code><a href=#the-map-element>map</a></code>, <code><a href=#meta>meta</a></code>, <code><a href=#the-object-element>object</a></code>,<!-- param?
XXX--> <code><a href=#the-select-element>select</a></code>, and <code><a href=#the-textarea-element>textarea</a></code> elements in
that document that have a <code title="">name</code> attribute whose
value is equal to the <var title="">name</var> argument (in a
<a href=#case-sensitive>case-sensitive</a> manner), in <a href=#tree-order>tree order</a>.</p>
<code><a href=#the-button-element>button</a></code>, <code><a href=#the-form-element>form</a></code>, <code>frame</code>,
<code>frameset</code>, <code><a href=#the-iframe-element>iframe</a></code>, <code><a href=#the-img-element>img</a></code>,
<code><a href=#the-input-element>input</a></code>, <code><a href=#the-map-element>map</a></code>, <code><a href=#meta>meta</a></code>,
<code><a href=#the-object-element>object</a></code>,<!-- param? XXX--> <code><a href=#the-select-element>select</a></code>, and
<code><a href=#the-textarea-element>textarea</a></code> elements in that document that have a <code title="">name</code> attribute whose value is equal to the <var title="">name</var> argument (in a <a href=#case-sensitive>case-sensitive</a>
manner), in <a href=#tree-order>tree order</a>.</p>

<p>The <dfn id=dom-document-getelementsbyclassname title=dom-document-getElementsByClassName><code>getElementsByClassName(<var title="">classNames</var>)</code></dfn> method takes a string that
contains an <a href=#unordered-set-of-unique-space-separated-tokens>unordered set of unique space-separated
Expand Down Expand Up @@ -6337,7 +6337,8 @@ interface <dfn id=htmldocument>HTMLDocument</dfn> {
<code title=attr-id><a href=#the-id-attribute>id</a></code> content attributes, and the values
of the <code title=attr-id><a href=#the-id-attribute>id</a></code> content attributes of all the
<code><a href=#the-img-element>img</a></code> elements in the <code>Document</code> that have
both <code title=attr-name>name</code> content attributes and <code title=attr-id><a href=#the-id-attribute>id</a></code> content attributes.</p>
both <code title=attr-name>name</code> content attributes and
<code title=attr-id><a href=#the-id-attribute>id</a></code> content attributes.</p>

<p>When <dfn id=dom-document-nameditem title=dom-document-namedItem>the
<code>HTMLDocument</code> object is indexed for property
Expand Down Expand Up @@ -33674,10 +33675,10 @@ interface <dfn id=window>Window</dfn> {

<ul><li>The value of the <code title="">name</code> content attribute
for all <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=#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 in the
<a href=#active-document>active document</a> that have a <code title="">name</code>
content attribute, and,</li>
<code><a href=#the-embed-element>embed</a></code>, <code>frame</code>, <code>frameset</code>,
<code><a href=#the-form-element>form</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 in the <a href=#active-document>active document</a>
that have a <code title="">name</code> content attribute, and,</li>

<li>The value of the <code title=attr-id><a href=#the-id-attribute>id</a></code> content
attribute of any <a href=#html-elements title="HTML elements">HTML element</a> in
Expand Down Expand Up @@ -33729,8 +33730,9 @@ interface <dfn id=window>Window</dfn> {
above algorithm, are those 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=#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 that have a <code title=attr-name>name</code> content attribute whose value is <var title="">name</var>, or</li>
<code><a href=#the-embed-element>embed</a></code>, <code><a href=#the-form-element>form</a></code>, <code>frame</code>,
<code>frameset</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 that have a <code title=attr-name>name</code> content attribute whose value is <var title="">name</var>, or</li>

<li><a href=#html-elements>HTML elements</a> elements that have an <code title=attr-id><a href=#the-id-attribute>id</a></code> content attribute whose value is <var title="">name</var>.</li>

Expand Down
39 changes: 21 additions & 18 deletions source
Expand Up @@ -5170,9 +5170,10 @@ interface <dfn>HTMLCollection</dfn> {

<li>It is an <code>a</code>, <code>applet</code>,
<code>area</code>, <code>embed</code>, <code>form</code>,
<code>iframe</code>, <code>img</code>, or <code>object</code>
element with a <code title="">name</code> attribute equal to <var
title="">key</var>, or,</li>
<code>frame</code>, <code>frameset</code>, <code>iframe</code>,
<code>img</code>, or <code>object</code> element with a <code
title="">name</code> attribute equal to <var title="">key</var>,
or,</li>

<li>It is an element with an ID <var title="">key</var>.</li>

Expand Down Expand Up @@ -6295,13 +6296,14 @@ interface <dfn>HTMLDocument</dfn> {
title="">name</var>)</code></dfn> method takes a string <var
title="">name</var>, and must return a live <code>NodeList</code>
containing all the <code>a</code>, <code>applet</code>,
<code>button</code>, <code>form</code>, <!-- frame? frameset?
XXX--><code>iframe</code>, <code>img</code>, <code>input</code>,
<code>map</code>, <code>meta</code>, <code>object</code>,<!-- param?
XXX--> <code>select</code>, and <code>textarea</code> elements in
that document that have a <code title="">name</code> attribute whose
value is equal to the <var title="">name</var> argument (in a
<span>case-sensitive</span> manner), in <span>tree order</span>.</p>
<code>button</code>, <code>form</code>, <code>frame</code>,
<code>frameset</code>, <code>iframe</code>, <code>img</code>,
<code>input</code>, <code>map</code>, <code>meta</code>,
<code>object</code>,<!-- param? XXX--> <code>select</code>, and
<code>textarea</code> elements in that document that have a <code
title="">name</code> attribute whose value is equal to the <var
title="">name</var> argument (in a <span>case-sensitive</span>
manner), in <span>tree order</span>.</p>

<p>The <dfn
title="dom-document-getElementsByClassName"><code>getElementsByClassName(<var
Expand Down Expand Up @@ -6386,8 +6388,8 @@ interface <dfn>HTMLDocument</dfn> {
<code title="attr-id">id</code> content attributes, and the values
of the <code title="attr-id">id</code> content attributes of all the
<code>img</code> elements in the <code>Document</code> that have
both <code title="attr-name">name</code> content attributes and <code
title="attr-id">id</code> content attributes.</p>
both <code title="attr-name">name</code> content attributes and
<code title="attr-id">id</code> content attributes.</p>

<p>When <dfn title="dom-document-namedItem">the
<code>HTMLDocument</code> object is indexed for property
Expand Down Expand Up @@ -38233,10 +38235,10 @@ interface <dfn>Window</dfn> {

<li>The value of the <code title="">name</code> content attribute
for all <code>a</code>, <code>applet</code>, <code>area</code>,
<code>embed</code>, <code>form</code>, <code>iframe</code>,
<code>img</code>, and <code>object</code> elements in the
<span>active document</span> that have a <code title="">name</code>
content attribute, and,</li>
<code>embed</code>, <code>frame</code>, <code>frameset</code>,
<code>form</code>, <code>iframe</code>, <code>img</code>, and
<code>object</code> elements in the <span>active document</span>
that have a <code title="">name</code> content attribute, and,</li>

<li>The value of the <code title="attr-id">id</code> content
attribute of any <span title="HTML elements">HTML element</span> in
Expand Down Expand Up @@ -38300,8 +38302,9 @@ interface <dfn>Window</dfn> {
<ul>

<li><code>a</code>, <code>applet</code>, <code>area</code>,
<code>embed</code>, <code>form</code>, <code>iframe</code>,
<code>img</code>, or <code>object</code> elements that have a <code
<code>embed</code>, <code>form</code>, <code>frame</code>,
<code>frameset</code>, <code>iframe</code>, <code>img</code>, or
<code>object</code> elements that have a <code
title="attr-name">name</code> content attribute whose value is <var
title="">name</var>, or</li>

Expand Down

0 comments on commit 09192a4

Please sign in to comment.