summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLSelectElement.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/HTMLSelectElement.idl
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/html/HTMLSelectElement.idl')
-rw-r--r--Source/WebCore/html/HTMLSelectElement.idl44
1 files changed, 22 insertions, 22 deletions
diff --git a/Source/WebCore/html/HTMLSelectElement.idl b/Source/WebCore/html/HTMLSelectElement.idl
index 92a96a3a2..d8629052f 100644
--- a/Source/WebCore/html/HTMLSelectElement.idl
+++ b/Source/WebCore/html/HTMLSelectElement.idl
@@ -20,45 +20,45 @@
[
CustomIndexedSetter,
+ ExportMacro=WEBCORE_EXPORT,
+ JSGenerateToNativeObject,
] interface HTMLSelectElement : HTMLElement {
[Reflect] attribute boolean autofocus;
[Reflect] attribute boolean disabled;
- readonly attribute HTMLFormElement form;
+ readonly attribute HTMLFormElement? form;
attribute boolean multiple;
[Reflect] attribute DOMString name;
[Reflect] attribute boolean required;
- attribute long size;
+
+ attribute unsigned long size;
readonly attribute DOMString type;
readonly attribute HTMLOptionsCollection options;
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
- // DOM Level 2 changes type of length attribute to unsigned long,
- // for compatibility we keep DOM Level 1 definition.
- readonly attribute long length;
-#else
- [SetterRaisesException] attribute unsigned long length;
-#endif
- getter Node item(unsigned long index);
- Node namedItem([Default=Undefined] optional DOMString name);
- [ObjCLegacyUnnamedParameters, RaisesException] void add([Default=Undefined] optional HTMLElement element,
- [Default=Undefined] optional HTMLElement before);
-#if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
- // In JavaScript, we support both option index and option object parameters.
- // As of this writing this cannot be auto-generated.
- [Custom] void remove(/* indexOrOption */);
-#else
- [ImplementedAs=removeByIndex] void remove(long index);
-#endif
+ [CEReactions, SetterMayThrowException] attribute unsigned long length;
+
+ getter HTMLOptionElement? item(unsigned long index);
+ HTMLOptionElement? namedItem(DOMString name);
+
+ [CEReactions, MayThrowException] void add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
+
+ [MayThrowException] void remove(); // ChildNode overload
+ [CEReactions] void remove(HTMLOptionElement option); // FIXME: This overload is not in the specification and was dropped in Blink
+ [CEReactions] void remove(long index);
+
readonly attribute HTMLCollection selectedOptions;
attribute long selectedIndex;
- [TreatNullAs=NullString] attribute DOMString value;
+
+ attribute DOMString value;
readonly attribute boolean willValidate;
readonly attribute ValidityState validity;
readonly attribute DOMString validationMessage;
boolean checkValidity();
- void setCustomValidity([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString error);
+ [EnabledAtRuntime=InteractiveFormValidation] boolean reportValidity();
+ void setCustomValidity(DOMString error);
readonly attribute NodeList labels;
+
+ attribute DOMString autocomplete;
};