Index: Source/core/html/HTMLOptionElement.idl |
diff --git a/Source/core/html/HTMLOptionElement.idl b/Source/core/html/HTMLOptionElement.idl |
index d57d72a5a9795026a2c9ee5460591f97974f9c96..4b832a35a4cdd6c45b98fdb54d492264ff09095e 100644 |
--- a/Source/core/html/HTMLOptionElement.idl |
+++ b/Source/core/html/HTMLOptionElement.idl |
@@ -18,6 +18,9 @@ |
* Boston, MA 02110-1301, USA. |
*/ |
+// https://html.spec.whatwg.org/#htmloptionelement |
+ |
+// TODO(philipj): The constructor arguments default values are not per spec. |
[ |
NamedConstructor=Option(optional DOMString data = null, |
optional DOMString value = null, |
@@ -27,12 +30,13 @@ |
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; |
}; |