| 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 * |
| 11 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
| 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 * Library General Public License for more details. | 14 * Library General Public License for more details. |
| 15 * | 15 * |
| 16 * You should have received a copy of the GNU Library General Public License | 16 * You should have received a copy of the GNU Library General Public License |
| 17 * along with this library; see the file COPYING.LIB. If not, write to | 17 * along with this library; see the file COPYING.LIB. If not, write to |
| 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 19 * Boston, MA 02110-1301, USA. | 19 * Boston, MA 02110-1301, USA. |
| 20 */ | 20 */ |
| 21 | 21 |
| 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(foolip): attribute DOMString autocomplete; | 25 // TODO(foolip): attribute DOMString autocomplete; |
| 26 [CEReactions, Reflect] attribute boolean autofocus; | 26 [Measure, CEReactions, Reflect] attribute boolean autofocus; |
| 27 [CEReactions, Reflect] attribute boolean disabled; | 27 [CEReactions, Reflect] attribute boolean disabled; |
| 28 [ImplementedAs=formOwner] readonly attribute HTMLFormElement? form; | 28 [ImplementedAs=formOwner] readonly attribute HTMLFormElement? form; |
| 29 [CEReactions, Reflect] attribute boolean multiple; | 29 [CEReactions, Reflect] attribute boolean multiple; |
| 30 [CEReactions, Reflect] attribute DOMString name; | 30 [CEReactions, Reflect] attribute DOMString name; |
| 31 [CEReactions, Reflect] attribute boolean required; | 31 [Measure, CEReactions, Reflect] attribute boolean required; |
| 32 [CEReactions] attribute unsigned long size; | 32 [CEReactions] attribute unsigned long size; |
| 33 | 33 |
| 34 readonly attribute DOMString type; | 34 readonly attribute DOMString type; |
| 35 | 35 |
| 36 readonly attribute HTMLOptionsCollection options; | 36 readonly attribute HTMLOptionsCollection options; |
| 37 // TODO(foolip): The length setter should never throw. | 37 // TODO(foolip): The length setter should never throw. |
| 38 [CEReactions, RaisesException=Setter] attribute unsigned long length; | 38 [CEReactions, RaisesException=Setter] attribute unsigned long length; |
| 39 getter Element? item(unsigned long index); | 39 getter Element? item(unsigned long index); |
| 40 HTMLOptionElement? namedItem(DOMString name); | 40 HTMLOptionElement? namedItem(DOMString name); |
| 41 [CEReactions, RaisesException] void add((HTMLOptionElement or HTMLOptGroupEl
ement) element, | 41 [CEReactions, RaisesException] void add((HTMLOptionElement or HTMLOptGroupEl
ement) element, |
| 42 optional (HTMLElement or long)? before = null); | 42 optional (HTMLElement or long)? before = null); |
| 43 [CEReactions, RaisesException] void remove(); // ChildNode overload | 43 [CEReactions, RaisesException] void remove(); // ChildNode overload |
| 44 [CEReactions] void remove(long index); | 44 [CEReactions] void remove(long index); |
| 45 [CEReactions, RaisesException] setter void (unsigned long index, HTMLOptionE
lement? option); | 45 [Measure, CEReactions, RaisesException] setter void (unsigned long index, HTML
OptionElement? option); |
| 46 | 46 |
| 47 readonly attribute HTMLCollection selectedOptions; | 47 [Measure] readonly attribute HTMLCollection selectedOptions; |
| 48 attribute long selectedIndex; | 48 attribute long selectedIndex; |
| 49 attribute DOMString value; | 49 attribute DOMString value; |
| 50 | 50 |
| 51 readonly attribute boolean willValidate; | 51 [MeasureAs=ValidationAPI] readonly attribute boolean willValidate; |
| 52 readonly attribute ValidityState validity; | 52 [MeasureAs=ValidationAPI] readonly attribute ValidityState validity; |
| 53 readonly attribute DOMString validationMessage; | 53 [MeasureAs=ValidationAPI] readonly attribute DOMString validationMessage; |
| 54 boolean checkValidity(); | 54 [MeasureAs=ValidationAPI] boolean checkValidity(); |
| 55 boolean reportValidity(); | 55 [MeasureAs=ValidationAPI] boolean reportValidity(); |
| 56 void setCustomValidity(DOMString error); | 56 [MeasureAs=ValidationAPI] void setCustomValidity(DOMString error); |
| 57 | 57 |
| 58 readonly attribute NodeList labels; | 58 readonly attribute NodeList labels; |
| 59 }; | 59 }; |
| OLD | NEW |