diff options
Diffstat (limited to 'Source/WebCore/html/HTMLOptionsCollection.idl')
-rw-r--r-- | Source/WebCore/html/HTMLOptionsCollection.idl | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/Source/WebCore/html/HTMLOptionsCollection.idl b/Source/WebCore/html/HTMLOptionsCollection.idl index a33209b91..3a19d1060 100644 --- a/Source/WebCore/html/HTMLOptionsCollection.idl +++ b/Source/WebCore/html/HTMLOptionsCollection.idl @@ -19,21 +19,20 @@ */ [ - JSGenerateToNativeObject, CustomIndexedSetter, + ExportToWrappedFunction, GenerateIsReachable=ImplOwnerNodeRoot, + JSGenerateToNativeObject, ] interface HTMLOptionsCollection : HTMLCollection { - attribute long selectedIndex; - [CustomSetter, SetterRaisesException] attribute unsigned long length; + [CEReactions, SetterMayThrowException] attribute unsigned long length; + // [CEReactions] setter void (unsigned long index, HTMLOptionElement? option); + [CEReactions, MayThrowException] void add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null); + [CEReactions] void remove(long index); + [CEReactions] void remove(HTMLOptionElement option); // FIXME: This overload is not in the specification and has been dropped from Blink. - Node namedItem([Default=Undefined] optional DOMString name); - - [Custom, RaisesException] void add([Default=Undefined] optional HTMLOptionElement option, - optional unsigned long index); - [Custom] void remove([Default=Undefined] optional unsigned long index); + attribute long selectedIndex; -#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C - Node item(unsigned long index); -#endif + // FIXME: Can these just be inherited from HTMLCollection like in the spec? + getter HTMLOptionElement? item(unsigned long index); + getter HTMLOptionElement? namedItem(DOMString name); }; - |