summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLSelectElement.idl
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/html/HTMLSelectElement.idl')
-rw-r--r--Source/WebCore/html/HTMLSelectElement.idl73
1 files changed, 35 insertions, 38 deletions
diff --git a/Source/WebCore/html/HTMLSelectElement.idl b/Source/WebCore/html/HTMLSelectElement.idl
index 6a1ae03d1..ac7f98904 100644
--- a/Source/WebCore/html/HTMLSelectElement.idl
+++ b/Source/WebCore/html/HTMLSelectElement.idl
@@ -18,51 +18,48 @@
* Boston, MA 02110-1301, USA.
*/
-module html {
+[
+ IndexedGetter,
+ CustomIndexedSetter
+] interface HTMLSelectElement : HTMLElement {
+ attribute [Reflect] boolean autofocus;
+ attribute [Reflect] boolean disabled;
+ readonly attribute HTMLFormElement form;
+ attribute boolean multiple;
+ attribute [Reflect] DOMString name;
+ attribute [Reflect] boolean required;
+ attribute long size;
- interface [
- IndexedGetter,
- CustomIndexedSetter
- ] HTMLSelectElement : HTMLElement {
- attribute [Reflect] boolean autofocus;
- attribute [Reflect] boolean disabled;
- readonly attribute HTMLFormElement form;
- attribute boolean multiple;
- attribute [Reflect] DOMString name;
- attribute [Reflect] boolean required;
- attribute long size;
+ readonly attribute DOMString type;
- readonly attribute DOMString type;
-
- readonly attribute HTMLOptionsCollection options;
+ 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;
+ // DOM Level 2 changes type of length attribute to unsigned long,
+ // for compatibility we keep DOM Level 1 definition.
+ readonly attribute long length;
#else
- attribute unsigned long length setter raises (DOMException);
+ attribute unsigned long length setter raises (DOMException);
#endif
- Node item(in [IsIndex,Optional=DefaultIsUndefined] unsigned long index);
- Node namedItem(in [Optional=DefaultIsUndefined] DOMString name);
- [ObjCLegacyUnnamedParameters] void add(in [Optional=DefaultIsUndefined] HTMLElement element,
- in [Optional=DefaultIsUndefined] HTMLElement before) raises(DOMException);
+ Node item(in [IsIndex,Optional=DefaultIsUndefined] unsigned long index);
+ Node namedItem(in [Optional=DefaultIsUndefined] DOMString name);
+ [ObjCLegacyUnnamedParameters] void add(in [Optional=DefaultIsUndefined] HTMLElement element,
+ in [Optional=DefaultIsUndefined] HTMLElement before) raises(DOMException);
#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 */);
+ // 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
- void remove(in long index);
+ void remove(in long index);
#endif
- readonly attribute HTMLCollection selectedOptions;
- attribute long selectedIndex;
- attribute [TreatNullAs=NullString] DOMString value;
+ readonly attribute HTMLCollection selectedOptions;
+ attribute long selectedIndex;
+ [TreatNullAs=NullString] attribute DOMString value;
- readonly attribute boolean willValidate;
- readonly attribute ValidityState validity;
- readonly attribute DOMString validationMessage;
- boolean checkValidity();
- void setCustomValidity(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString error);
+ readonly attribute boolean willValidate;
+ readonly attribute ValidityState validity;
+ readonly attribute DOMString validationMessage;
+ boolean checkValidity();
+ void setCustomValidity(in [TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString error);
- readonly attribute NodeList labels;
- };
-}
+ readonly attribute NodeList labels;
+};