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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 attribute [ConvertNullToNullString] DOMString name; | 51 attribute [ConvertNullToNullString] DOMString name; |
52 attribute [Reflect] boolean required; | 52 attribute [Reflect] boolean required; |
53 attribute long size; | 53 attribute long size; |
54 | 54 |
55 [OldStyleObjC] void add(in [Optional=CallWithDefaultValue] HTMLElement e
lement, | 55 [OldStyleObjC] void add(in [Optional=CallWithDefaultValue] HTMLElement e
lement, |
56 in [Optional=CallWithDefaultValue] HTMLElement b
efore) raises(DOMException); | 56 in [Optional=CallWithDefaultValue] HTMLElement b
efore) raises(DOMException); |
57 | 57 |
58 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT | 58 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT |
59 // In JavaScript, we support both option index and option object paramet
ers. | 59 // In JavaScript, we support both option index and option object paramet
ers. |
60 // As of this writing this cannot be auto-generated. | 60 // As of this writing this cannot be auto-generated. |
61 [Custom] void remove(in long index); | 61 [Custom] void remove(/* indexOrOption */); |
62 [Custom] void remove(in HTMLOptionElement option); | |
63 #else | 62 #else |
64 void remove(in long index); | 63 void remove(in long index); |
65 #endif | 64 #endif |
66 | 65 |
67 // These methods are not in DOM Level 2 IDL, but are mentioned in the st
andard: | 66 // These methods are not in DOM Level 2 IDL, but are mentioned in the st
andard: |
68 // "The contained options can be directly accessed through the select el
ement as a collection." | 67 // "The contained options can be directly accessed through the select el
ement as a collection." |
69 Node item(in [IsIndex,Optional=CallWithDefaultValue] unsigned long index
); | 68 Node item(in [IsIndex,Optional=CallWithDefaultValue] unsigned long index
); |
70 Node namedItem(in [Optional=CallWithDefaultValue] DOMString name); | 69 Node namedItem(in [Optional=CallWithDefaultValue] DOMString name); |
71 readonly attribute NodeList labels; | 70 readonly attribute NodeList labels; |
72 }; | 71 }; |
73 | 72 |
74 } | 73 } |
OLD | NEW |