- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 12 Aug 2011 23:20:18 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv13045
Modified Files:
Overview.html
Log Message:
closer to existing implementations (whatwg r6440)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5142
retrieving revision 1.5143
diff -u -d -r1.5142 -r1.5143
--- Overview.html 12 Aug 2011 22:20:21 -0000 1.5142
+++ Overview.html 12 Aug 2011 23:20:14 -0000 1.5143
@@ -7065,8 +7065,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><dl class="domintro"><dt><var title="">collection</var> . <code title="dom-HTMLOptionsCollection-length"><a href="#dom-htmloptionscollection-length">length</a></code> [ = <var title="">value</var> ]</dt>
@@ -7104,8 +7106,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>
@@ -7198,11 +7199,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>
@@ -36631,8 +36628,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);
@@ -36842,8 +36841,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>
Received on Friday, 12 August 2011 23:20:23 UTC