| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; |
| 57 attribute long selectedIndex; | 58 attribute long selectedIndex; |
| 58 attribute [TreatNullAs=NullString] DOMString value; | 59 attribute [TreatNullAs=NullString] DOMString value; |
| 59 | 60 |
| 60 readonly attribute boolean willValidate; | 61 readonly attribute boolean willValidate; |
| 61 readonly attribute ValidityState validity; | 62 readonly attribute ValidityState validity; |
| 62 readonly attribute DOMString validationMessage; | 63 readonly attribute DOMString validationMessage; |
| 63 boolean checkValidity(); | 64 boolean checkValidity(); |
| 64 void setCustomValidity(in [TreatNullAs=NullString, TreatUndefinedAs=Null
String] DOMString error); | 65 void setCustomValidity(in [TreatNullAs=NullString, TreatUndefinedAs=Null
String] DOMString error); |
| 65 | 66 |
| 66 readonly attribute NodeList labels; | 67 readonly attribute NodeList labels; |
| 67 }; | 68 }; |
| 68 } | 69 } |
| OLD | NEW |