Index: core/html/HTMLOptionElement.idl |
diff --git a/core/html/HTMLOptionElement.idl b/core/html/HTMLOptionElement.idl |
index d57d72a5a9795026a2c9ee5460591f97974f9c96..bcbeed389d434e96643d011d113b2dfc204b556d 100644 |
--- a/core/html/HTMLOptionElement.idl |
+++ b/core/html/HTMLOptionElement.idl |
@@ -18,21 +18,24 @@ |
* Boston, MA 02110-1301, USA. |
*/ |
+// https://html.spec.whatwg.org/#the-option-element |
+ |
[ |
NamedConstructor=Option(optional DOMString data = null, |
optional DOMString value = null, |
- [Default=Undefined] optional boolean defaultSelected, |
- [Default=Undefined] optional boolean selected), |
+ optional boolean defaultSelected = false, |
+ optional boolean selected = false), |
ConstructorCallWith=Document, |
RaisesException=Constructor |
] interface HTMLOptionElement : HTMLElement { |
[Reflect] attribute boolean disabled; |
- readonly attribute HTMLFormElement form; |
+ readonly attribute HTMLFormElement? form; |
attribute DOMString label; |
[Reflect=selected] attribute boolean defaultSelected; |
attribute boolean selected; |
attribute DOMString value; |
+ // TODO(philipj): The text setter should never throw. |
[RaisesException=Setter] attribute DOMString text; |
readonly attribute long index; |
}; |