| Index: core/html/HTMLSelectElement.idl
|
| diff --git a/core/html/HTMLSelectElement.idl b/core/html/HTMLSelectElement.idl
|
| index 3104a3fdbbc15093e1892ea582d4b79b666d5724..470d9c2597fb5cdd04cf1bb4aadc62a57dda3710 100644
|
| --- a/core/html/HTMLSelectElement.idl
|
| +++ b/core/html/HTMLSelectElement.idl
|
| @@ -19,6 +19,8 @@
|
| * Boston, MA 02110-1301, USA.
|
| */
|
|
|
| +// http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#htmlselectelement
|
| +
|
| interface HTMLSelectElement : HTMLElement {
|
| [Reflect] attribute boolean autofocus;
|
| [Reflect] attribute boolean disabled;
|
| @@ -34,16 +36,17 @@ interface HTMLSelectElement : HTMLElement {
|
| [RaisesException=Setter] attribute unsigned long length;
|
|
|
| getter Element item(unsigned long index);
|
| - [RaisesException, StrictTypeChecking] setter HTMLOptionElement (unsigned long index, HTMLOptionElement? value);
|
| Element namedItem([Default=Undefined] optional DOMString name);
|
| - [RaisesException] void add([Default=Undefined] optional HTMLElement element,
|
| - [Default=Undefined] optional HTMLElement before);
|
| - void remove(long index);
|
| - void remove(HTMLOptionElement option); // non-standard
|
| - [RaisesException] void remove();
|
| + // FIXME: should be union type http://crbug.com/240176
|
| + [RaisesException, TypeChecking=Interface, DartSuppress] void add(HTMLElement element, optional HTMLElement? before = null);
|
| + [ImplementedAs=addBeforeOptionAtIndex, RaisesException, TypeChecking=Interface] void add(HTMLElement element, long before);
|
| + [RaisesException, DartSuppress] void remove(); // ChildNode overload
|
| + [DartSuppress] void remove(long index);
|
| + [RaisesException, TypeChecking=Interface|Nullable] setter HTMLOptionElement (unsigned long index, HTMLOptionElement? value);
|
| +
|
| readonly attribute HTMLCollection selectedOptions;
|
| - attribute long selectedIndex;
|
| - attribute DOMString value;
|
| + attribute long selectedIndex;
|
| + attribute DOMString value;
|
|
|
| readonly attribute boolean willValidate;
|
| readonly attribute ValidityState validity;
|
|
|