summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLOptionElement.idl
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/html/HTMLOptionElement.idl')
-rw-r--r--Source/WebCore/html/HTMLOptionElement.idl10
1 files changed, 3 insertions, 7 deletions
diff --git a/Source/WebCore/html/HTMLOptionElement.idl b/Source/WebCore/html/HTMLOptionElement.idl
index eeafa422d..6b71bd485 100644
--- a/Source/WebCore/html/HTMLOptionElement.idl
+++ b/Source/WebCore/html/HTMLOptionElement.idl
@@ -19,9 +19,9 @@
*/
[
+ ConstructorMayThrowException,
JSGenerateToNativeObject,
- NamedConstructor=Option([Default=NullString] optional DOMString data, [Default=NullString] optional DOMString value, [Default=Undefined] optional boolean defaultSelected, [Default=Undefined] optional boolean selected),
- ConstructorRaisesException
+ NamedConstructor=Option(optional DOMString data, optional DOMString value, optional boolean defaultSelected = false, optional boolean selected = false),
] interface HTMLOptionElement : HTMLElement {
[Reflect] attribute boolean disabled;
readonly attribute HTMLFormElement form;
@@ -30,10 +30,6 @@
attribute boolean selected;
attribute DOMString value;
-#if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
- [SetterRaisesException] attribute DOMString text;
-#else
- readonly attribute DOMString text;
-#endif
+ [CEReactions] attribute DOMString text;
readonly attribute long index;
};