| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2006, 2010 Apple Inc. All rights reserved. | 2  * Copyright (C) 2006, 2010 Apple Inc. All rights reserved. | 
| 3  * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3  * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 
| 4  * Copyright (C) 2013 Samsung Electronics. All rights reserved. | 4  * Copyright (C) 2013 Samsung Electronics. All rights reserved. | 
| 5  * | 5  * | 
| 6  * This library is free software; you can redistribute it and/or | 6  * This library is free software; you can redistribute it and/or | 
| 7  * modify it under the terms of the GNU Library General Public | 7  * modify it under the terms of the GNU Library General Public | 
| 8  * License as published by the Free Software Foundation; either | 8  * License as published by the Free Software Foundation; either | 
| 9  * version 2 of the License, or (at your option) any later version. | 9  * version 2 of the License, or (at your option) any later version. | 
| 10  * | 10  * | 
| (...skipping 11 matching lines...) Expand all  Loading... | 
| 22 // https://html.spec.whatwg.org/#the-select-element | 22 // https://html.spec.whatwg.org/#the-select-element | 
| 23 | 23 | 
| 24 interface HTMLSelectElement : HTMLElement { | 24 interface HTMLSelectElement : HTMLElement { | 
| 25     // TODO(philipj): attribute DOMString autocomplete; | 25     // TODO(philipj): attribute DOMString autocomplete; | 
| 26     [Reflect] attribute boolean autofocus; | 26     [Reflect] attribute boolean autofocus; | 
| 27     [Reflect] attribute boolean disabled; | 27     [Reflect] attribute boolean disabled; | 
| 28     [ImplementedAs=formOwner] readonly attribute HTMLFormElement? form; | 28     [ImplementedAs=formOwner] readonly attribute HTMLFormElement? form; | 
| 29     attribute boolean multiple; | 29     attribute boolean multiple; | 
| 30     [Reflect] attribute DOMString name; | 30     [Reflect] attribute DOMString name; | 
| 31     [Reflect] attribute boolean required; | 31     [Reflect] attribute boolean required; | 
| 32     // TODO(philipj): size should be unsigned long. | 32     attribute unsigned long size; | 
| 33     attribute long size; |  | 
| 34 | 33 | 
| 35     readonly attribute DOMString type; | 34     readonly attribute DOMString type; | 
| 36 | 35 | 
| 37     readonly attribute HTMLOptionsCollection options; | 36     readonly attribute HTMLOptionsCollection options; | 
| 38     // TODO(philipj): The length setter should never throw. | 37     // TODO(philipj): The length setter should never throw. | 
| 39     [RaisesException=Setter] attribute unsigned long length; | 38     [RaisesException=Setter] attribute unsigned long length; | 
| 40     getter Element? item(unsigned long index); | 39     getter Element? item(unsigned long index); | 
| 41     // TODO(philipj): The name argument should not be optional. | 40     // TODO(philipj): The name argument should not be optional. | 
| 42     HTMLOptionElement? namedItem([Default=Undefined] optional DOMString name); | 41     HTMLOptionElement? namedItem([Default=Undefined] optional DOMString name); | 
| 43     [RaisesException, TypeChecking=Interface] void add((HTMLOptionElement or HTM
    LOptGroupElement) element, | 42     [RaisesException, TypeChecking=Interface] void add((HTMLOptionElement or HTM
    LOptGroupElement) element, | 
| 44                                                        optional (HTMLElement or 
    long)? before = null); | 43                                                        optional (HTMLElement or 
    long)? before = null); | 
| 45     [RaisesException] void remove(); // ChildNode overload | 44     [RaisesException] void remove(); // ChildNode overload | 
| 46     void remove(long index); | 45     void remove(long index); | 
| 47     [RaisesException, TypeChecking=Interface] setter void (unsigned long index, 
    HTMLOptionElement? option); | 46     [RaisesException, TypeChecking=Interface] setter void (unsigned long index, 
    HTMLOptionElement? option); | 
| 48 | 47 | 
| 49     readonly attribute HTMLCollection selectedOptions; | 48     readonly attribute HTMLCollection selectedOptions; | 
| 50     attribute long selectedIndex; | 49     attribute long selectedIndex; | 
| 51     attribute DOMString value; | 50     attribute DOMString value; | 
| 52 | 51 | 
| 53     readonly attribute boolean willValidate; | 52     readonly attribute boolean willValidate; | 
| 54     readonly attribute ValidityState validity; | 53     readonly attribute ValidityState validity; | 
| 55     readonly attribute DOMString validationMessage; | 54     readonly attribute DOMString validationMessage; | 
| 56     boolean checkValidity(); | 55     boolean checkValidity(); | 
| 57     boolean reportValidity(); | 56     boolean reportValidity(); | 
| 58     // TODO(philipj): The error argument should not be nullable. | 57     // TODO(philipj): The error argument should not be nullable. | 
| 59     void setCustomValidity([TreatUndefinedAs=NullString] DOMString? error); | 58     void setCustomValidity([TreatUndefinedAs=NullString] DOMString? error); | 
| 60 | 59 | 
| 61     readonly attribute NodeList labels; | 60     readonly attribute NodeList labels; | 
| 62 }; | 61 }; | 
| OLD | NEW | 
|---|