| 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, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 module html { | 21 module html { |
| 22 | 22 |
| 23 interface [ | 23 interface [ |
| 24 IndexedGetter, | 24 IndexedGetter, |
| 25 CustomIndexedSetter | 25 CustomIndexedSetter |
| 26 ] HTMLSelectElement : HTMLElement { | 26 ] HTMLSelectElement : HTMLElement { |
| 27 attribute [Reflect] boolean autofocus; | 27 attribute [Reflect] boolean autofocus; |
| 28 attribute [Reflect] boolean disabled; | 28 attribute [Reflect] boolean disabled; |
| 29 readonly attribute HTMLFormElement form; | 29 readonly attribute HTMLFormElement form; |
| 30 attribute boolean multiple; | 30 attribute boolean multiple; |
| 31 attribute [TreatNullAs=NullString] DOMString name; | 31 attribute [Reflect] DOMString name; |
| 32 attribute [Reflect] boolean required; | 32 attribute [Reflect] boolean required; |
| 33 attribute long size; | 33 attribute long size; |
| 34 | 34 |
| 35 readonly attribute DOMString type; | 35 readonly attribute DOMString type; |
| 36 | 36 |
| 37 readonly attribute HTMLOptionsCollection options; | 37 readonly attribute HTMLOptionsCollection options; |
| 38 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C | 38 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C |
| 39 // DOM Level 2 changes type of length attribute to unsigned long, | 39 // DOM Level 2 changes type of length attribute to unsigned long, |
| 40 // for compatibility we keep DOM Level 1 definition. | 40 // for compatibility we keep DOM Level 1 definition. |
| 41 readonly attribute long length; | 41 readonly attribute long length; |
| 42 #else | 42 #else |
| 43 attribute unsigned long length setter raises (DOMException); | 43 attribute unsigned long length setter raises (DOMException); |
| 44 #endif | 44 #endif |
| 45 Node item(in [IsIndex,Optional=DefaultIsUndefined] unsigned long index); | 45 Node item(in [IsIndex,Optional=DefaultIsUndefined] unsigned long index); |
| 46 Node namedItem(in [Optional=DefaultIsUndefined] DOMString name); | 46 Node namedItem(in [Optional=DefaultIsUndefined] DOMString name); |
| 47 [ObjCLegacyUnnamedParameters] void add(in [Optional=DefaultIsUndefined]
HTMLElement element, | 47 [ObjCLegacyUnnamedParameters] void add(in [Optional=DefaultIsUndefined]
HTMLElement element, |
| 48 in [Optional=DefaultIsUndefined] HTMLElement bef
ore) raises(DOMException); | 48 in [Optional=DefaultIsUndefined] HTMLElement bef
ore) raises(DOMException); |
| 49 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT | 49 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT |
| 50 // In JavaScript, we support both option index and option object paramet
ers. | 50 // In JavaScript, we support both option index and option object paramet
ers. |
| 51 // As of this writing this cannot be auto-generated. | 51 // As of this writing this cannot be auto-generated. |
| 52 [Custom] void remove(in long index); | 52 [Custom] void remove(in long index); |
| 53 [Custom] void remove(in HTMLOptionElement option); | 53 [Custom] void remove(in HTMLOptionElement option); |
| 54 #else | 54 #else |
| 55 void remove(in long index); | 55 void remove(in long index); |
| 56 #endif | 56 #endif |
| 57 readonly attribute HTMLCollection selectedOptions; | |
| 58 attribute long selectedIndex; | 57 attribute long selectedIndex; |
| 59 attribute [TreatNullAs=NullString] DOMString value; | 58 attribute [TreatNullAs=NullString] DOMString value; |
| 60 | 59 |
| 61 readonly attribute boolean willValidate; | 60 readonly attribute boolean willValidate; |
| 62 readonly attribute ValidityState validity; | 61 readonly attribute ValidityState validity; |
| 63 readonly attribute DOMString validationMessage; | 62 readonly attribute DOMString validationMessage; |
| 64 boolean checkValidity(); | 63 boolean checkValidity(); |
| 65 void setCustomValidity(in [TreatNullAs=NullString, TreatUndefinedAs=Null
String] DOMString error); | 64 void setCustomValidity(in [TreatNullAs=NullString, TreatUndefinedAs=Null
String] DOMString error); |
| 66 | 65 |
| 67 readonly attribute NodeList labels; | 66 readonly attribute NodeList labels; |
| 68 }; | 67 }; |
| 69 } | 68 } |
| OLD | NEW |