[html5] r8192 - [giow] (3) remove() is also defined on an ancestor interface, so overload it her [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Sep 23 12:31:37 PDT 2013


Author: ianh
Date: 2013-09-23 12:31:36 -0700 (Mon, 23 Sep 2013)
New Revision: 8192

Modified:
   complete.html
   index
   source
Log:
[giow] (3) remove() is also defined on an ancestor interface, so overload it here on <select>.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=20720
Affected topics: DOM APIs

Modified: complete.html
===================================================================
--- complete.html	2013-09-16 21:55:17 UTC (rev 8191)
+++ complete.html	2013-09-23 19:31:36 UTC (rev 8192)
@@ -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 — Last Updated 16 September 2013</h2>
+    <h2 class="no-num no-toc">Living Standard — 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>
@@ -3592,6 +3592,7 @@
      <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>
@@ -50795,6 +50796,7 @@
   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);
 
@@ -51064,9 +51066,15 @@
   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
   matches the elements in the <a href=#concept-select-option-list title=concept-select-option-list>list of options</a> that

Modified: index
===================================================================
--- index	2013-09-16 21:55:17 UTC (rev 8191)
+++ index	2013-09-23 19:31:36 UTC (rev 8192)
@@ -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 — Last Updated 16 September 2013</h2>
+    <h2 class="no-num no-toc">Living Standard — 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>
@@ -3592,6 +3592,7 @@
      <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>
@@ -50795,6 +50796,7 @@
   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);
 
@@ -51064,9 +51066,15 @@
   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
   matches the elements in the <a href=#concept-select-option-list title=concept-select-option-list>list of options</a> that

Modified: source
===================================================================
--- source	2013-09-16 21:55:17 UTC (rev 8191)
+++ source	2013-09-23 19:31:36 UTC (rev 8192)
@@ -2390,6 +2390,7 @@
      <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>
@@ -55762,6 +55763,7 @@
   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);
 
@@ -56083,10 +56085,15 @@
   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
   matches the elements in the <span title="concept-select-option-list">list of options</span> that




More information about the Commit-Watchers mailing list