Skip to content

Commit

Permalink
[giow] (3) remove() is also defined on an ancestor interface, so over…
Browse files Browse the repository at this point in the history
…load it here on <select>.

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

git-svn-id: http://svn.whatwg.org/webapps@8192 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 23, 2013
1 parent f0225eb commit 297bc37
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 9 deletions.
14 changes: 11 additions & 3 deletions complete.html
Expand Up @@ -256,7 +256,7 @@

<header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 16 September 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 23 September 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -3592,6 +3592,7 @@ <h4 id=dependencies><span class=secno>2.2.2 </span>Dependencies</h4>
<li><dfn id=documentfragment><code>DocumentFragment</code></dfn> interface</li>
<li><dfn id=documenttype><code>DocumentType</code></dfn> interface</li>
<li><dfn id=domexception><code>DOMException</code></dfn> interface</li>
<li><dfn id=childnode><code>ChildNode</code></dfn> interface</li>
<li><dfn id=element><code>Element</code></dfn> interface</li>
<li><dfn id=node><code>Node</code></dfn> interface</li>
<li><dfn id=nodelist><code>NodeList</code></dfn> interface</li>
Expand Down Expand Up @@ -50795,6 +50796,7 @@ <h4 id=the-select-element><span class=secno>4.10.9 </span>The <dfn><code>select<
getter <a href=#element>Element</a>? <a href=#dom-select-item title=dom-select-item>item</a>(unsigned long index);
<a href=#htmloptionelement>HTMLOptionElement</a>? <a href=#dom-select-nameditem title=dom-select-namedItem>namedItem</a>(DOMString name);
void <a href=#dom-select-add title=dom-select-add>add</a>((<a href=#htmloptionelement>HTMLOptionElement</a> or <a href=#htmloptgroupelement>HTMLOptGroupElement</a>) element, optional (<a href=#htmlelement>HTMLElement</a> or long)? before = null);
void <a href=#dom-select-remove title=dom-select-remove>remove</a>(); // ChildNode overload
void <a href=#dom-select-remove title=dom-select-remove>remove</a>(long index);
<a href=#dom-htmloptionscollection-setter title=dom-HTMLOptionsCollection-setter>setter creator</a> void (unsigned long index, <a href=#htmloptionelement>HTMLOptionElement</a>? option);

Expand Down Expand Up @@ -51064,8 +51066,14 @@ <h4 id=the-select-element><span class=secno>4.10.9 </span>The <dfn><code>select<
new value <var title="">value</var> on the <code title=dom-select-options><a href=#dom-select-options>options</a></code>
collection.</p>

<p>Similarly, the <dfn id=dom-select-add title=dom-select-add><code>add()</code></dfn> and <dfn id=dom-select-remove title=dom-select-remove><code>remove()</code></dfn> methods must act like their namesake methods
on that same <code title=dom-select-options><a href=#dom-select-options>options</a></code> collection.</p>
<p>Similarly, the <dfn id=dom-select-add title=dom-select-add><code>add()</code></dfn> method must act like its
namesake method on that same <code title=dom-select-options><a href=#dom-select-options>options</a></code> collection.</p>

<p>The <dfn id=dom-select-remove title=dom-select-remove><code>remove()</code></dfn> method must act like its
namesake method on that same <code title=dom-select-options><a href=#dom-select-options>options</a></code> collection when it
has arguments, and like its namesake method on the <code><a href=#childnode>ChildNode</a></code> interface implemented by
the <code><a href=#htmlselectelement>HTMLSelectElement</a></code> ancestor interface <code><a href=#element>Element</a></code> when it has no
arguments.</p>

<p>The <dfn id=dom-select-selectedoptions title=dom-select-selectedOptions><code>selectedOptions</code></dfn> IDL attribute
must return an <code><a href=#htmlcollection>HTMLCollection</a></code> rooted at the <code><a href=#the-select-element>select</a></code> node, whose filter
Expand Down
14 changes: 11 additions & 3 deletions index
Expand Up @@ -256,7 +256,7 @@

<header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 16 September 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 23 September 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -3592,6 +3592,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<li><dfn id=documentfragment><code>DocumentFragment</code></dfn> interface</li>
<li><dfn id=documenttype><code>DocumentType</code></dfn> interface</li>
<li><dfn id=domexception><code>DOMException</code></dfn> interface</li>
<li><dfn id=childnode><code>ChildNode</code></dfn> interface</li>
<li><dfn id=element><code>Element</code></dfn> interface</li>
<li><dfn id=node><code>Node</code></dfn> interface</li>
<li><dfn id=nodelist><code>NodeList</code></dfn> interface</li>
Expand Down Expand Up @@ -50795,6 +50796,7 @@ You cannot submit this form when the field is incorrect.</samp></pre>
getter <a href=#element>Element</a>? <a href=#dom-select-item title=dom-select-item>item</a>(unsigned long index);
<a href=#htmloptionelement>HTMLOptionElement</a>? <a href=#dom-select-nameditem title=dom-select-namedItem>namedItem</a>(DOMString name);
void <a href=#dom-select-add title=dom-select-add>add</a>((<a href=#htmloptionelement>HTMLOptionElement</a> or <a href=#htmloptgroupelement>HTMLOptGroupElement</a>) element, optional (<a href=#htmlelement>HTMLElement</a> or long)? before = null);
void <a href=#dom-select-remove title=dom-select-remove>remove</a>(); // ChildNode overload
void <a href=#dom-select-remove title=dom-select-remove>remove</a>(long index);
<a href=#dom-htmloptionscollection-setter title=dom-HTMLOptionsCollection-setter>setter creator</a> void (unsigned long index, <a href=#htmloptionelement>HTMLOptionElement</a>? option);

Expand Down Expand Up @@ -51064,8 +51066,14 @@ You cannot submit this form when the field is incorrect.</samp></pre>
new value <var title="">value</var> on the <code title=dom-select-options><a href=#dom-select-options>options</a></code>
collection.</p>

<p>Similarly, the <dfn id=dom-select-add title=dom-select-add><code>add()</code></dfn> and <dfn id=dom-select-remove title=dom-select-remove><code>remove()</code></dfn> methods must act like their namesake methods
on that same <code title=dom-select-options><a href=#dom-select-options>options</a></code> collection.</p>
<p>Similarly, the <dfn id=dom-select-add title=dom-select-add><code>add()</code></dfn> method must act like its
namesake method on that same <code title=dom-select-options><a href=#dom-select-options>options</a></code> collection.</p>

<p>The <dfn id=dom-select-remove title=dom-select-remove><code>remove()</code></dfn> method must act like its
namesake method on that same <code title=dom-select-options><a href=#dom-select-options>options</a></code> collection when it
has arguments, and like its namesake method on the <code><a href=#childnode>ChildNode</a></code> interface implemented by
the <code><a href=#htmlselectelement>HTMLSelectElement</a></code> ancestor interface <code><a href=#element>Element</a></code> when it has no
arguments.</p>

<p>The <dfn id=dom-select-selectedoptions title=dom-select-selectedOptions><code>selectedOptions</code></dfn> IDL attribute
must return an <code><a href=#htmlcollection>HTMLCollection</a></code> rooted at the <code><a href=#the-select-element>select</a></code> node, whose filter
Expand Down
13 changes: 10 additions & 3 deletions source
Expand Up @@ -2390,6 +2390,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<li><dfn><code>DocumentFragment</code></dfn> interface</li>
<li><dfn><code>DocumentType</code></dfn> interface</li>
<li><dfn><code>DOMException</code></dfn> interface</li>
<li><dfn><code>ChildNode</code></dfn> interface</li>
<li><dfn><code>Element</code></dfn> interface</li>
<li><dfn><code>Node</code></dfn> interface</li>
<li><dfn><code>NodeList</code></dfn> interface</li>
Expand Down Expand Up @@ -55762,6 +55763,7 @@ You cannot submit this form when the field is incorrect.</samp></pre>
getter <span>Element</span>? <span title="dom-select-item">item</span>(unsigned long index);
<span>HTMLOptionElement</span>? <span title="dom-select-namedItem">namedItem</span>(DOMString name);
void <span title="dom-select-add">add</span>((<span>HTMLOptionElement</span> or <span>HTMLOptGroupElement</span>) element, optional (<span>HTMLElement</span> or long)? before = null);
void <span title="dom-select-remove">remove</span>(); // ChildNode overload
void <span title="dom-select-remove">remove</span>(long index);
<span title="dom-HTMLOptionsCollection-setter">setter creator</span> void (unsigned long index, <span>HTMLOptionElement</span>? option);

Expand Down Expand Up @@ -56083,9 +56085,14 @@ You cannot submit this form when the field is incorrect.</samp></pre>
new value <var title="">value</var> on the <code title="dom-select-options">options</code>
collection.</p>

<p>Similarly, the <dfn title="dom-select-add"><code>add()</code></dfn> and <dfn
title="dom-select-remove"><code>remove()</code></dfn> methods must act like their namesake methods
on that same <code title="dom-select-options">options</code> collection.</p>
<p>Similarly, the <dfn title="dom-select-add"><code>add()</code></dfn> method must act like its
namesake method on that same <code title="dom-select-options">options</code> collection.</p>

<p>The <dfn title="dom-select-remove"><code>remove()</code></dfn> method must act like its
namesake method on that same <code title="dom-select-options">options</code> collection when it
has arguments, and like its namesake method on the <code>ChildNode</code> interface implemented by
the <code>HTMLSelectElement</code> ancestor interface <code>Element</code> when it has no
arguments.</p>

<p>The <dfn title="dom-select-selectedOptions"><code>selectedOptions</code></dfn> IDL attribute
must return an <code>HTMLCollection</code> rooted at the <code>select</code> node, whose filter
Expand Down

0 comments on commit 297bc37

Please sign in to comment.