summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLOptionsCollection.idl
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/html/HTMLOptionsCollection.idl
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/html/HTMLOptionsCollection.idl')
-rw-r--r--Source/WebCore/html/HTMLOptionsCollection.idl23
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);
};
-