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 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 */ | 19 */ |
20 | 20 |
21 [ | 21 [ |
22 CustomIndexedSetter, | 22 CustomIndexedSetter, |
23 CustomIndexedGetter, | |
24 SkipVTableValidation | 23 SkipVTableValidation |
25 ] interface HTMLSelectElement : HTMLElement { | 24 ] interface HTMLSelectElement : HTMLElement { |
26 [Reflect] attribute boolean autofocus; | 25 [Reflect] attribute boolean autofocus; |
27 [Reflect] attribute boolean disabled; | 26 [Reflect] attribute boolean disabled; |
28 readonly attribute HTMLFormElement form; | 27 readonly attribute HTMLFormElement form; |
29 attribute boolean multiple; | 28 attribute boolean multiple; |
30 [Reflect] attribute DOMString name; | 29 [Reflect] attribute DOMString name; |
31 [Reflect] attribute boolean required; | 30 [Reflect] attribute boolean required; |
32 attribute long size; | 31 attribute long size; |
33 | 32 |
34 readonly attribute DOMString type; | 33 readonly attribute DOMString type; |
35 | 34 |
36 readonly attribute HTMLOptionsCollection options; | 35 readonly attribute HTMLOptionsCollection options; |
37 [SetterRaisesException] attribute unsigned long length; | 36 [SetterRaisesException] attribute unsigned long length; |
38 | 37 |
39 Node item([IsIndex,Default=Undefined] optional unsigned long index); | 38 getter Node item([IsIndex,Default=Undefined] optional unsigned long index); |
40 Node namedItem([Default=Undefined] optional DOMString name); | 39 Node namedItem([Default=Undefined] optional DOMString name); |
41 [RaisesException] void add([Default=Undefined] optional HTMLElement element
, | 40 [RaisesException] void add([Default=Undefined] optional HTMLElement element
, |
42 [Default=Undefined] optional HTMLElement before); | 41 [Default=Undefined] optional HTMLElement before); |
43 // In JavaScript, we support both option index and option object parameters. | 42 // In JavaScript, we support both option index and option object parameters. |
44 // As of this writing this cannot be auto-generated. | 43 // As of this writing this cannot be auto-generated. |
45 [Custom] void remove(/* indexOrOption */); | 44 [Custom] void remove(/* indexOrOption */); |
46 readonly attribute HTMLCollection selectedOptions; | 45 readonly attribute HTMLCollection selectedOptions; |
47 attribute long selectedIndex; | 46 attribute long selectedIndex; |
48 [TreatNullAs=NullString] attribute DOMString value; | 47 [TreatNullAs=NullString] attribute DOMString value; |
49 | 48 |
50 readonly attribute boolean willValidate; | 49 readonly attribute boolean willValidate; |
51 readonly attribute ValidityState validity; | 50 readonly attribute ValidityState validity; |
52 readonly attribute DOMString validationMessage; | 51 readonly attribute DOMString validationMessage; |
53 boolean checkValidity(); | 52 boolean checkValidity(); |
54 void setCustomValidity([TreatNullAs=NullString, TreatUndefinedAs=NullString]
DOMString error); | 53 void setCustomValidity([TreatNullAs=NullString, TreatUndefinedAs=NullString]
DOMString error); |
55 | 54 |
56 readonly attribute NodeList labels; | 55 readonly attribute NodeList labels; |
57 }; | 56 }; |
OLD | NEW |