[html5] r6440 - [giow] (2) closer to existing implementations Fixing http://www.w3.org/Bugs/Publ [...]
whatwg at whatwg.org
whatwg at whatwg.org
Fri Aug 12 16:19:58 PDT 2011
Author: ianh
Date: 2011-08-12 16:19:56 -0700 (Fri, 12 Aug 2011)
New Revision: 6440
Modified:
complete.html
index
source
Log:
[giow] (2) closer to existing implementations
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=12861
Modified: complete.html
===================================================================
--- complete.html 2011-08-12 22:19:54 UTC (rev 6439)
+++ complete.html 2011-08-12 23:19:56 UTC (rev 6440)
@@ -8344,8 +8344,10 @@
attribute unsigned long <a href=#dom-htmloptionscollection-length title=dom-HTMLOptionsCollection-length>length</a>; // overrides inherited length
caller getter object? <a href=#dom-htmloptionscollection-nameditem title=dom-HTMLOptionsCollection-namedItem>namedItem</a>(in DOMString name); // overrides inherited namedItem()
<a href=#dom-htmloptionscollection-setter title=dom-HTMLOptionsCollection-setter>setter creator</a> void (in unsigned long index, in <a href=#htmloptionelement>HTMLOptionElement</a> option);
- void <a href=#dom-htmloptionscollection-add title=dom-HTMLOptionsCollection-add>add</a>(in <a href=#htmlelement>HTMLElement</a> element, in optional <a href=#htmlelement>HTMLElement</a>? before);
- void <a href=#dom-htmloptionscollection-add title=dom-HTMLOptionsCollection-add>add</a>(in <a href=#htmlelement>HTMLElement</a> element, in long before);
+ void <a href=#dom-htmloptionscollection-add title=dom-HTMLOptionsCollection-add>add</a>(in <a href=#htmloptionelement>HTMLOptionElement</a> element, in optional <a href=#htmlelement>HTMLElement</a>? before);
+ void <a href=#dom-htmloptionscollection-add title=dom-HTMLOptionsCollection-add>add</a>(in <a href=#htmloptgroupelement>HTMLOptGroupElement</a> element, in optional <a href=#htmlelement>HTMLElement</a>? before);
+ void <a href=#dom-htmloptionscollection-add title=dom-HTMLOptionsCollection-add>add</a>(in <a href=#htmloptionelement>HTMLOptionElement</a> element, in long before);
+ void <a href=#dom-htmloptionscollection-add title=dom-HTMLOptionsCollection-add>add</a>(in <a href=#htmloptgroupelement>HTMLOptGroupElement</a> element, in long before);
void <a href=#dom-htmloptionscollection-remove title=dom-HTMLOptionsCollection-remove>remove</a>(in long index);
attribute long <a href=#dom-htmloptionscollection-selectedindex title=dom-HTMLOptionsCollection-selectedIndex>selectedIndex</a>;
};</pre>
@@ -8385,8 +8387,7 @@
end of the list.</p>
<p>This method will throw a <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code>
exception if <var title="">element</var> is an ancestor of the
- element into which it is to be inserted. If <var title="">element</var> is not an <code><a href=#the-option-element>option</a></code> or
- <code><a href=#the-optgroup-element>optgroup</a></code> element, then the method does nothing.</p>
+ element into which it is to be inserted.</p>
</dd>
<dt><var title="">collection</var> . <code title=dom-HTMLOptionsCollection-selectedIndex><a href=#dom-htmloptionscollection-selectedindex>selectedIndex</a></code> [ = <var title="">value</var> ]</dt>
@@ -8479,11 +8480,7 @@
</ol><p>The <dfn id=dom-htmloptionscollection-add title=dom-HTMLOptionsCollection-add><code>add(<var title="">element</var>, <var title="">before</var>)</code></dfn>
method must act according to the following algorithm:</p>
- <ol><li><p>If <var title="">element</var> is not an <code><a href=#the-option-element>option</a></code>
- or <code><a href=#the-optgroup-element>optgroup</a></code> element, then return and abort these
- steps.</li>
-
- <li><p>If <var title="">element</var> is an ancestor of the
+ <ol><li><p>If <var title="">element</var> is an ancestor of the
<code><a href=#the-select-element>select</a></code> element on which the
<code><a href=#htmloptionscollection>HTMLOptionsCollection</a></code> is rooted, then throw a
<code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> exception.</li>
@@ -48584,8 +48581,10 @@
attribute unsigned long <a href=#dom-select-length title=dom-select-length>length</a>;
getter any <a href=#dom-select-item title=dom-select-item>item</a>(in unsigned long index);
any <a href=#dom-select-nameditem title=dom-select-namedItem>namedItem</a>(in DOMString name);
- void <a href=#dom-select-add title=dom-select-add>add</a>(in <a href=#htmlelement>HTMLElement</a> element, in optional <a href=#htmlelement>HTMLElement</a>? before);
- void <a href=#dom-select-add title=dom-select-add>add</a>(in <a href=#htmlelement>HTMLElement</a> element, in long before);
+ void <a href=#dom-select-add title=dom-select-add>add</a>(in <a href=#htmloptionelement>HTMLOptionElement</a> element, in optional <a href=#htmlelement>HTMLElement</a>? before);
+ void <a href=#dom-select-add title=dom-select-add>add</a>(in <a href=#htmloptgroupelement>HTMLOptGroupElement</a> element, in optional <a href=#htmlelement>HTMLElement</a>? before);
+ void <a href=#dom-select-add title=dom-select-add>add</a>(in <a href=#htmloptionelement>HTMLOptionElement</a> element, in long before);
+ void <a href=#dom-select-add title=dom-select-add>add</a>(in <a href=#htmloptgroupelement>HTMLOptGroupElement</a> element, in long before);
void <a href=#dom-select-remove title=dom-select-remove>remove</a>(in long index);
<a href=#dom-htmloptionscollection-setter title=dom-HTMLOptionsCollection-setter>setter creator</a> void (in unsigned long index, in <a href=#htmloptionelement>HTMLOptionElement</a> option);
@@ -48824,8 +48823,7 @@
end of the list.</p>
<p>This method will throw a <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code>
exception if <var title="">element</var> is an ancestor of the
- element into which it is to be inserted. If <var title="">element</var> is not an <code><a href=#the-option-element>option</a></code> or
- <code><a href=#the-optgroup-element>optgroup</a></code> element, then the method does nothing.</p>
+ element into which it is to be inserted.</p>
</dd>
<dt><var title="">select</var> . <code title=dom-select-selectedOptions><a href=#dom-select-selectedoptions>selectedOptions</a></code></dt>
Modified: index
===================================================================
--- index 2011-08-12 22:19:54 UTC (rev 6439)
+++ index 2011-08-12 23:19:56 UTC (rev 6440)
@@ -8208,8 +8208,10 @@
attribute unsigned long <a href=#dom-htmloptionscollection-length title=dom-HTMLOptionsCollection-length>length</a>; // overrides inherited length
caller getter object? <a href=#dom-htmloptionscollection-nameditem title=dom-HTMLOptionsCollection-namedItem>namedItem</a>(in DOMString name); // overrides inherited namedItem()
<a href=#dom-htmloptionscollection-setter title=dom-HTMLOptionsCollection-setter>setter creator</a> void (in unsigned long index, in <a href=#htmloptionelement>HTMLOptionElement</a> option);
- void <a href=#dom-htmloptionscollection-add title=dom-HTMLOptionsCollection-add>add</a>(in <a href=#htmlelement>HTMLElement</a> element, in optional <a href=#htmlelement>HTMLElement</a>? before);
- void <a href=#dom-htmloptionscollection-add title=dom-HTMLOptionsCollection-add>add</a>(in <a href=#htmlelement>HTMLElement</a> element, in long before);
+ void <a href=#dom-htmloptionscollection-add title=dom-HTMLOptionsCollection-add>add</a>(in <a href=#htmloptionelement>HTMLOptionElement</a> element, in optional <a href=#htmlelement>HTMLElement</a>? before);
+ void <a href=#dom-htmloptionscollection-add title=dom-HTMLOptionsCollection-add>add</a>(in <a href=#htmloptgroupelement>HTMLOptGroupElement</a> element, in optional <a href=#htmlelement>HTMLElement</a>? before);
+ void <a href=#dom-htmloptionscollection-add title=dom-HTMLOptionsCollection-add>add</a>(in <a href=#htmloptionelement>HTMLOptionElement</a> element, in long before);
+ void <a href=#dom-htmloptionscollection-add title=dom-HTMLOptionsCollection-add>add</a>(in <a href=#htmloptgroupelement>HTMLOptGroupElement</a> element, in long before);
void <a href=#dom-htmloptionscollection-remove title=dom-HTMLOptionsCollection-remove>remove</a>(in long index);
attribute long <a href=#dom-htmloptionscollection-selectedindex title=dom-HTMLOptionsCollection-selectedIndex>selectedIndex</a>;
};</pre>
@@ -8249,8 +8251,7 @@
end of the list.</p>
<p>This method will throw a <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code>
exception if <var title="">element</var> is an ancestor of the
- element into which it is to be inserted. If <var title="">element</var> is not an <code><a href=#the-option-element>option</a></code> or
- <code><a href=#the-optgroup-element>optgroup</a></code> element, then the method does nothing.</p>
+ element into which it is to be inserted.</p>
</dd>
<dt><var title="">collection</var> . <code title=dom-HTMLOptionsCollection-selectedIndex><a href=#dom-htmloptionscollection-selectedindex>selectedIndex</a></code> [ = <var title="">value</var> ]</dt>
@@ -8343,11 +8344,7 @@
</ol><p>The <dfn id=dom-htmloptionscollection-add title=dom-HTMLOptionsCollection-add><code>add(<var title="">element</var>, <var title="">before</var>)</code></dfn>
method must act according to the following algorithm:</p>
- <ol><li><p>If <var title="">element</var> is not an <code><a href=#the-option-element>option</a></code>
- or <code><a href=#the-optgroup-element>optgroup</a></code> element, then return and abort these
- steps.</li>
-
- <li><p>If <var title="">element</var> is an ancestor of the
+ <ol><li><p>If <var title="">element</var> is an ancestor of the
<code><a href=#the-select-element>select</a></code> element on which the
<code><a href=#htmloptionscollection>HTMLOptionsCollection</a></code> is rooted, then throw a
<code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code> exception.</li>
@@ -48451,8 +48448,10 @@
attribute unsigned long <a href=#dom-select-length title=dom-select-length>length</a>;
getter any <a href=#dom-select-item title=dom-select-item>item</a>(in unsigned long index);
any <a href=#dom-select-nameditem title=dom-select-namedItem>namedItem</a>(in DOMString name);
- void <a href=#dom-select-add title=dom-select-add>add</a>(in <a href=#htmlelement>HTMLElement</a> element, in optional <a href=#htmlelement>HTMLElement</a>? before);
- void <a href=#dom-select-add title=dom-select-add>add</a>(in <a href=#htmlelement>HTMLElement</a> element, in long before);
+ void <a href=#dom-select-add title=dom-select-add>add</a>(in <a href=#htmloptionelement>HTMLOptionElement</a> element, in optional <a href=#htmlelement>HTMLElement</a>? before);
+ void <a href=#dom-select-add title=dom-select-add>add</a>(in <a href=#htmloptgroupelement>HTMLOptGroupElement</a> element, in optional <a href=#htmlelement>HTMLElement</a>? before);
+ void <a href=#dom-select-add title=dom-select-add>add</a>(in <a href=#htmloptionelement>HTMLOptionElement</a> element, in long before);
+ void <a href=#dom-select-add title=dom-select-add>add</a>(in <a href=#htmloptgroupelement>HTMLOptGroupElement</a> element, in long before);
void <a href=#dom-select-remove title=dom-select-remove>remove</a>(in long index);
<a href=#dom-htmloptionscollection-setter title=dom-HTMLOptionsCollection-setter>setter creator</a> void (in unsigned long index, in <a href=#htmloptionelement>HTMLOptionElement</a> option);
@@ -48691,8 +48690,7 @@
end of the list.</p>
<p>This method will throw a <code><a href=#hierarchy_request_err>HIERARCHY_REQUEST_ERR</a></code>
exception if <var title="">element</var> is an ancestor of the
- element into which it is to be inserted. If <var title="">element</var> is not an <code><a href=#the-option-element>option</a></code> or
- <code><a href=#the-optgroup-element>optgroup</a></code> element, then the method does nothing.</p>
+ element into which it is to be inserted.</p>
</dd>
<dt><var title="">select</var> . <code title=dom-select-selectedOptions><a href=#dom-select-selectedoptions>selectedOptions</a></code></dt>
Modified: source
===================================================================
--- source 2011-08-12 22:19:54 UTC (rev 6439)
+++ source 2011-08-12 23:19:56 UTC (rev 6440)
@@ -8202,8 +8202,10 @@
attribute unsigned long <span title="dom-HTMLOptionsCollection-length">length</span>; // overrides inherited length
caller getter object? <span title="dom-HTMLOptionsCollection-namedItem">namedItem</span>(in DOMString name); // overrides inherited namedItem()
<span title="dom-HTMLOptionsCollection-setter">setter creator</span> void (in unsigned long index, in <span>HTMLOptionElement</span> option);
- void <span title="dom-HTMLOptionsCollection-add">add</span>(in <span>HTMLElement</span> element, in optional <span>HTMLElement</span>? before);
- void <span title="dom-HTMLOptionsCollection-add">add</span>(in <span>HTMLElement</span> element, in long before);
+ void <span title="dom-HTMLOptionsCollection-add">add</span>(in <span>HTMLOptionElement</span> element, in optional <span>HTMLElement</span>? before);
+ void <span title="dom-HTMLOptionsCollection-add">add</span>(in <span>HTMLOptGroupElement</span> element, in optional <span>HTMLElement</span>? before);
+ void <span title="dom-HTMLOptionsCollection-add">add</span>(in <span>HTMLOptionElement</span> element, in long before);
+ void <span title="dom-HTMLOptionsCollection-add">add</span>(in <span>HTMLOptGroupElement</span> element, in long before);
void <span title="dom-HTMLOptionsCollection-remove">remove</span>(in long index);
attribute long <span title="dom-HTMLOptionsCollection-selectedIndex">selectedIndex</span>;
};</pre>
@@ -8245,9 +8247,7 @@
end of the list.</p>
<p>This method will throw a <code>HIERARCHY_REQUEST_ERR</code>
exception if <var title="">element</var> is an ancestor of the
- element into which it is to be inserted. If <var
- title="">element</var> is not an <code>option</code> or
- <code>optgroup</code> element, then the method does nothing.</p>
+ element into which it is to be inserted.</p>
</dd>
<dt><var title="">collection</var> . <code title="dom-HTMLOptionsCollection-selectedIndex">selectedIndex</code> [ = <var title="">value</var> ]</dt>
@@ -8368,10 +8368,6 @@
<ol>
- <li><p>If <var title="">element</var> is not an <code>option</code>
- or <code>optgroup</code> element, then return and abort these
- steps.</li>
-
<li><p>If <var title="">element</var> is an ancestor of the
<code>select</code> element on which the
<code>HTMLOptionsCollection</code> is rooted, then throw a
@@ -54364,8 +54360,10 @@
attribute unsigned long <span title="dom-select-length">length</span>;
getter any <span title="dom-select-item">item</span>(in unsigned long index);
any <span title="dom-select-namedItem">namedItem</span>(in DOMString name);
- void <span title="dom-select-add">add</span>(in <span>HTMLElement</span> element, in optional <span>HTMLElement</span>? before);
- void <span title="dom-select-add">add</span>(in <span>HTMLElement</span> element, in long before);
+ void <span title="dom-select-add">add</span>(in <span>HTMLOptionElement</span> element, in optional <span>HTMLElement</span>? before);
+ void <span title="dom-select-add">add</span>(in <span>HTMLOptGroupElement</span> element, in optional <span>HTMLElement</span>? before);
+ void <span title="dom-select-add">add</span>(in <span>HTMLOptionElement</span> element, in long before);
+ void <span title="dom-select-add">add</span>(in <span>HTMLOptGroupElement</span> element, in long before);
void <span title="dom-select-remove">remove</span>(in long index);
<span title="dom-HTMLOptionsCollection-setter">setter creator</span> void (in unsigned long index, in <span>HTMLOptionElement</span> option);
@@ -54649,9 +54647,7 @@
end of the list.</p>
<p>This method will throw a <code>HIERARCHY_REQUEST_ERR</code>
exception if <var title="">element</var> is an ancestor of the
- element into which it is to be inserted. If <var
- title="">element</var> is not an <code>option</code> or
- <code>optgroup</code> element, then the method does nothing.</p>
+ element into which it is to be inserted.</p>
</dd>
<dt><var title="">select</var> . <code title="dom-select-selectedOptions">selectedOptions</code></dt>
More information about the Commit-Watchers
mailing list