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 * | 5 * |
5 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
8 * 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. |
9 * | 10 * |
10 * 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, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 14 * Library General Public License for more details. |
(...skipping 16 matching lines...) Expand all Loading... |
30 readonly attribute DOMString type; | 31 readonly attribute DOMString type; |
31 | 32 |
32 readonly attribute HTMLOptionsCollection options; | 33 readonly attribute HTMLOptionsCollection options; |
33 [SetterRaisesException] attribute unsigned long length; | 34 [SetterRaisesException] attribute unsigned long length; |
34 | 35 |
35 getter Node item(unsigned long index); | 36 getter Node item(unsigned long index); |
36 [ImplementedAs=anonymousIndexedSetter, RaisesException] setter HTMLOptionEle
ment (unsigned long index, [TreatNullAs=anonymousIndexedSetterRemove, TreatUndef
inedAs=anonymousIndexedSetterRemove] HTMLOptionElement value); | 37 [ImplementedAs=anonymousIndexedSetter, RaisesException] setter HTMLOptionEle
ment (unsigned long index, [TreatNullAs=anonymousIndexedSetterRemove, TreatUndef
inedAs=anonymousIndexedSetterRemove] HTMLOptionElement value); |
37 Node namedItem([Default=Undefined] optional DOMString name); | 38 Node namedItem([Default=Undefined] optional DOMString name); |
38 [RaisesException] void add([Default=Undefined] optional HTMLElement element
, | 39 [RaisesException] void add([Default=Undefined] optional HTMLElement element
, |
39 [Default=Undefined] optional HTMLElement before); | 40 [Default=Undefined] optional HTMLElement before); |
40 // In JavaScript, we support both option index and option object parameters. | 41 void remove(long index); |
41 // As of this writing this cannot be auto-generated. | 42 void remove(HTMLOptionElement option); // Non standard. |
42 [Custom] void remove(/* indexOrOption */); | 43 [RaisesException] void remove(); |
43 readonly attribute HTMLCollection selectedOptions; | 44 readonly attribute HTMLCollection selectedOptions; |
44 attribute long selectedIndex; | 45 attribute long selectedIndex; |
45 [TreatNullAs=NullString] attribute DOMString value; | 46 [TreatNullAs=NullString] attribute DOMString value; |
46 | 47 |
47 readonly attribute boolean willValidate; | 48 readonly attribute boolean willValidate; |
48 readonly attribute ValidityState validity; | 49 readonly attribute ValidityState validity; |
49 readonly attribute DOMString validationMessage; | 50 readonly attribute DOMString validationMessage; |
50 boolean checkValidity(); | 51 boolean checkValidity(); |
51 void setCustomValidity([TreatNullAs=NullString, TreatUndefinedAs=NullString]
DOMString error); | 52 void setCustomValidity([TreatNullAs=NullString, TreatUndefinedAs=NullString]
DOMString error); |
52 | 53 |
53 readonly attribute NodeList labels; | 54 readonly attribute NodeList labels; |
54 }; | 55 }; |
OLD | NEW |