[html5] r8193 - [giow] (3) Remove duplication in IDL Fixing https://www.w3.org/Bugs/Public/show_ [...]

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


Author: ianh
Date: 2013-09-23 12:37:27 -0700 (Mon, 23 Sep 2013)
New Revision: 8193

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Remove duplication in IDL
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=23198
Affected topics: DOM APIs

Modified: complete.html
===================================================================
--- complete.html	2013-09-23 19:31:36 UTC (rev 8192)
+++ complete.html	2013-09-23 19:37:27 UTC (rev 8193)
@@ -7657,7 +7657,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>? <a href=#dom-htmloptionscollection-nameditem title=dom-HTMLOptionsCollection-namedItem>namedItem</a>(DOMString name); // shadows inherited namedItem()
+  <a href=#dom-htmloptionscollection-nameditem title=dom-HTMLOptionsCollection-namedItem>legacycaller</a> <a href=#htmloptionelement>HTMLOptionElement</a>? (DOMString name);
   <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);
@@ -7731,9 +7731,9 @@
   duplicates, with the <code title=attr-id><a href=#the-id-attribute>id</a></code> of an element preceding its <code title=attr-option-name><a href=#attr-option-name>name</a></code> if it contributes both, they differ from each other, and neither is
   the duplicate of an earlier entry.</p>
 
-  <p>The <dfn id=dom-htmloptionscollection-nameditem title=dom-HTMLOptionsCollection-namedItem><code>namedItem(<var title="">name</var>)</code></dfn> method must return the first node in the collection that has
-  either an <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute or a <code title=attr-option-name><a href=#attr-option-name>name</a></code> attribute equal to <var title="">name</var>, if there is one and if <var title="">name</var> is not the empty string;
-  otherwise, it must return null.</p>
+  <p>The <dfn id=dom-htmloptionscollection-nameditem title=dom-HTMLOptionsCollection-namedItem>legacy caller</dfn> of the
+  <code><a href=#htmloptionscollection>HTMLOptionsCollection</a></code> interface must act like the <code title=dom-HTMLCollection-namedItem>namedItem()</code> method on the ancestor
+  <code><a href=#htmlcollection>HTMLCollection</a></code> interface.</p>
 
   <p>When the user agent is to <dfn id=dom-htmloptionscollection-setter title=dom-HTMLOptionsCollection-setter>set the value of a new
   indexed property</dfn> for a given property index <var title="">index</var> to a new value <var title="">value</var>, it must run the following algorithm:</p>

Modified: index
===================================================================
--- index	2013-09-23 19:31:36 UTC (rev 8192)
+++ index	2013-09-23 19:37:27 UTC (rev 8193)
@@ -7657,7 +7657,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>? <a href=#dom-htmloptionscollection-nameditem title=dom-HTMLOptionsCollection-namedItem>namedItem</a>(DOMString name); // shadows inherited namedItem()
+  <a href=#dom-htmloptionscollection-nameditem title=dom-HTMLOptionsCollection-namedItem>legacycaller</a> <a href=#htmloptionelement>HTMLOptionElement</a>? (DOMString name);
   <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);
@@ -7731,9 +7731,9 @@
   duplicates, with the <code title=attr-id><a href=#the-id-attribute>id</a></code> of an element preceding its <code title=attr-option-name><a href=#attr-option-name>name</a></code> if it contributes both, they differ from each other, and neither is
   the duplicate of an earlier entry.</p>
 
-  <p>The <dfn id=dom-htmloptionscollection-nameditem title=dom-HTMLOptionsCollection-namedItem><code>namedItem(<var title="">name</var>)</code></dfn> method must return the first node in the collection that has
-  either an <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute or a <code title=attr-option-name><a href=#attr-option-name>name</a></code> attribute equal to <var title="">name</var>, if there is one and if <var title="">name</var> is not the empty string;
-  otherwise, it must return null.</p>
+  <p>The <dfn id=dom-htmloptionscollection-nameditem title=dom-HTMLOptionsCollection-namedItem>legacy caller</dfn> of the
+  <code><a href=#htmloptionscollection>HTMLOptionsCollection</a></code> interface must act like the <code title=dom-HTMLCollection-namedItem>namedItem()</code> method on the ancestor
+  <code><a href=#htmlcollection>HTMLCollection</a></code> interface.</p>
 
   <p>When the user agent is to <dfn id=dom-htmloptionscollection-setter title=dom-HTMLOptionsCollection-setter>set the value of a new
   indexed property</dfn> for a given property index <var title="">index</var> to a new value <var title="">value</var>, it must run the following algorithm:</p>

Modified: source
===================================================================
--- source	2013-09-23 19:31:36 UTC (rev 8192)
+++ source	2013-09-23 19:37:27 UTC (rev 8193)
@@ -7234,7 +7234,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>? <span title="dom-HTMLOptionsCollection-namedItem">namedItem</span>(DOMString name); // shadows inherited namedItem()
+  <span title="dom-HTMLOptionsCollection-namedItem">legacycaller</span> <span>HTMLOptionElement</span>? (DOMString name);
   <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);
@@ -7320,11 +7320,10 @@
   title="attr-option-name">name</code> if it contributes both, they differ from each other, and neither is
   the duplicate of an earlier entry.</p>
 
-  <p>The <dfn title="dom-HTMLOptionsCollection-namedItem"><code>namedItem(<var
-  title="">name</var>)</code></dfn> method must return the first node in the collection that has
-  either an <code title="attr-id">id</code> attribute or a <code
-  title="attr-option-name">name</code> attribute equal to <var title="">name</var>, if there is one and if <var title="">name</var> is not the empty string;
-  otherwise, it must return null.</p>
+  <p>The <dfn title="dom-HTMLOptionsCollection-namedItem">legacy caller</dfn> of the
+  <code>HTMLOptionsCollection</code> interface must act like the <code
+  title="dom-HTMLCollection-namedItem">namedItem()</code> method on the ancestor
+  <code>HTMLCollection</code> interface.</p>
 
   <p>When the user agent is to <dfn title="dom-HTMLOptionsCollection-setter">set the value of a new
   indexed property</dfn> for a given property index <var title="">index</var> to a new value <var




More information about the Commit-Watchers mailing list