hixie: closer to existing implementations (whatwg r6440)

hixie: closer to existing implementations (whatwg r6440)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5142&r2=1.5143&f=h
http://html5.org/tools/web-apps-tracker?from=6439&to=6440

===================================================================
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:37 UTC