[html5] r7897 - [] (0) Turns out in practice you can never get an <optgroup> from these APIs, so [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Jun 4 13:41:03 PDT 2013


Author: ianh
Date: 2013-06-04 13:41:02 -0700 (Tue, 04 Jun 2013)
New Revision: 7897

Modified:
   complete.html
   index
   source
Log:
[] (0) Turns out in practice you can never get an <optgroup> from these APIs, so, let's remove them from the IDL.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=22225
Affected topics: DOM APIs

Modified: complete.html
===================================================================
--- complete.html	2013-06-04 20:38:33 UTC (rev 7896)
+++ complete.html	2013-06-04 20:41:02 UTC (rev 7897)
@@ -7627,7 +7627,7 @@
   <pre class=idl>interface <dfn id=htmloptionscollection>HTMLOptionsCollection</dfn> : <a href=#htmlcollection>HTMLCollection</a> {
   // inherits <a href=#dom-htmlcollection-item title=dom-HTMLCollection-item>item</a>()
            attribute unsigned long <a href=#dom-htmloptionscollection-length title=dom-HTMLOptionsCollection-length>length</a>; // shadows inherited length
-  legacycaller getter (<a href=#htmloptionelement>HTMLOptionElement</a> or <a href=#htmloptgroupelement>HTMLOptGroupElement</a>)? <a href=#dom-htmloptionscollection-nameditem title=dom-HTMLOptionsCollection-namedItem>namedItem</a>(DOMString name); // shadows inherited namedItem()
+  legacycaller getter <a href=#htmloptionelement>HTMLOptionElement</a>? <a href=#dom-htmloptionscollection-nameditem title=dom-HTMLOptionsCollection-namedItem>namedItem</a>(DOMString name); // shadows inherited namedItem()
   <a href=#dom-htmloptionscollection-setter title=dom-HTMLOptionsCollection-setter>setter creator</a> void (unsigned long index, <a href=#htmloptionelement>HTMLOptionElement</a>? option);
   void <a href=#dom-htmloptionscollection-add title=dom-HTMLOptionsCollection-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-htmloptionscollection-remove title=dom-HTMLOptionsCollection-remove>remove</a>(long index);
@@ -50410,7 +50410,7 @@
   readonly attribute <a href=#htmloptionscollection>HTMLOptionsCollection</a> <a href=#dom-select-options title=dom-select-options>options</a>;
            attribute unsigned long <a href=#dom-select-length title=dom-select-length>length</a>;
   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> or <a href=#htmloptgroupelement>HTMLOptGroupElement</a>)? <a href=#dom-select-nameditem title=dom-select-namedItem>namedItem</a>(DOMString name);
+  <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>(long index);
   <a href=#dom-htmloptionscollection-setter title=dom-HTMLOptionsCollection-setter>setter creator</a> void (unsigned long index, <a href=#htmloptionelement>HTMLOptionElement</a>? option);

Modified: index
===================================================================
--- index	2013-06-04 20:38:33 UTC (rev 7896)
+++ index	2013-06-04 20:41:02 UTC (rev 7897)
@@ -7627,7 +7627,7 @@
   <pre class=idl>interface <dfn id=htmloptionscollection>HTMLOptionsCollection</dfn> : <a href=#htmlcollection>HTMLCollection</a> {
   // inherits <a href=#dom-htmlcollection-item title=dom-HTMLCollection-item>item</a>()
            attribute unsigned long <a href=#dom-htmloptionscollection-length title=dom-HTMLOptionsCollection-length>length</a>; // shadows inherited length
-  legacycaller getter (<a href=#htmloptionelement>HTMLOptionElement</a> or <a href=#htmloptgroupelement>HTMLOptGroupElement</a>)? <a href=#dom-htmloptionscollection-nameditem title=dom-HTMLOptionsCollection-namedItem>namedItem</a>(DOMString name); // shadows inherited namedItem()
+  legacycaller getter <a href=#htmloptionelement>HTMLOptionElement</a>? <a href=#dom-htmloptionscollection-nameditem title=dom-HTMLOptionsCollection-namedItem>namedItem</a>(DOMString name); // shadows inherited namedItem()
   <a href=#dom-htmloptionscollection-setter title=dom-HTMLOptionsCollection-setter>setter creator</a> void (unsigned long index, <a href=#htmloptionelement>HTMLOptionElement</a>? option);
   void <a href=#dom-htmloptionscollection-add title=dom-HTMLOptionsCollection-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-htmloptionscollection-remove title=dom-HTMLOptionsCollection-remove>remove</a>(long index);
@@ -50410,7 +50410,7 @@
   readonly attribute <a href=#htmloptionscollection>HTMLOptionsCollection</a> <a href=#dom-select-options title=dom-select-options>options</a>;
            attribute unsigned long <a href=#dom-select-length title=dom-select-length>length</a>;
   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> or <a href=#htmloptgroupelement>HTMLOptGroupElement</a>)? <a href=#dom-select-nameditem title=dom-select-namedItem>namedItem</a>(DOMString name);
+  <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>(long index);
   <a href=#dom-htmloptionscollection-setter title=dom-HTMLOptionsCollection-setter>setter creator</a> void (unsigned long index, <a href=#htmloptionelement>HTMLOptionElement</a>? option);

Modified: source
===================================================================
--- source	2013-06-04 20:38:33 UTC (rev 7896)
+++ source	2013-06-04 20:41:02 UTC (rev 7897)
@@ -7212,7 +7212,7 @@
   <pre class="idl">interface <dfn>HTMLOptionsCollection</dfn> : <span>HTMLCollection</span> {
   // inherits <span title="dom-HTMLCollection-item">item</span>()
            attribute unsigned long <span title="dom-HTMLOptionsCollection-length">length</span>; // shadows inherited length
-  legacycaller getter (<span>HTMLOptionElement</span> or <span>HTMLOptGroupElement</span>)? <span title="dom-HTMLOptionsCollection-namedItem">namedItem</span>(DOMString name); // shadows inherited namedItem()
+  legacycaller getter <span>HTMLOptionElement</span>? <span title="dom-HTMLOptionsCollection-namedItem">namedItem</span>(DOMString name); // shadows inherited namedItem()
   <span title="dom-HTMLOptionsCollection-setter">setter creator</span> void (unsigned long index, <span>HTMLOptionElement</span>? option);
   void <span title="dom-HTMLOptionsCollection-add">add</span>((<span>HTMLOptionElement</span> or <span>HTMLOptGroupElement</span>) element, optional (<span>HTMLElement</span> or long)? before = null);
   void <span title="dom-HTMLOptionsCollection-remove">remove</span>(long index);
@@ -55315,7 +55315,7 @@
   readonly attribute <span>HTMLOptionsCollection</span> <span title="dom-select-options">options</span>;
            attribute unsigned long <span title="dom-select-length">length</span>;
   getter <span>Element</span>? <span title="dom-select-item">item</span>(unsigned long index);
-  (<span>HTMLOptionElement</span> or <span>HTMLOptGroupElement</span>)? <span title="dom-select-namedItem">namedItem</span>(DOMString name);
+  <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>(long index);
   <span title="dom-HTMLOptionsCollection-setter">setter creator</span> void (unsigned long index, <span>HTMLOptionElement</span>? option);




More information about the Commit-Watchers mailing list