Index: core/html/HTMLSelectElement.idl |
diff --git a/core/html/HTMLSelectElement.idl b/core/html/HTMLSelectElement.idl |
index b4ddd8065977da397f1c913999d11e1ef260bab3..718cec128d31644c7cd4058c927b22125298ab7c 100644 |
--- a/core/html/HTMLSelectElement.idl |
+++ b/core/html/HTMLSelectElement.idl |
@@ -19,40 +19,42 @@ |
* Boston, MA 02110-1301, USA. |
*/ |
-// http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#htmlselectelement |
+// https://html.spec.whatwg.org/#the-select-element |
interface HTMLSelectElement : HTMLElement { |
+ // TODO(philipj): attribute DOMString autocomplete; |
[Reflect] attribute boolean autofocus; |
[Reflect] attribute boolean disabled; |
- [ImplementedAs=formOwner] readonly attribute HTMLFormElement form; |
+ [ImplementedAs=formOwner] 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; |
+ // TODO(philipj): The length setter should never throw. |
[RaisesException=Setter] attribute unsigned long length; |
- |
- getter Element item(unsigned long index); |
- Element namedItem([Default=Undefined] optional DOMString name); |
- // FIXME: should be union type http://crbug.com/240176 |
- [RaisesException, TypeChecking=Interface, DartSuppress] void add(HTMLElement element, optional HTMLElement? before = null); |
- [ImplementedAs=addBeforeOptionAtIndex, RaisesException, TypeChecking=Interface] void add(HTMLElement element, long before); |
- [RaisesException, DartSuppress] void remove(); // ChildNode overload |
- [DartSuppress] void remove(long index); |
- [RaisesException, TypeChecking=Interface] setter HTMLOptionElement (unsigned long index, HTMLOptionElement? value); |
+ getter Element? item(unsigned long index); |
+ // TODO(philipj): The name argument should not be optional. |
+ HTMLOptionElement? namedItem([Default=Undefined] optional DOMString name); |
+ [RaisesException, TypeChecking=Interface] void add((HTMLOptionElement or HTMLOptGroupElement) element, |
+ optional (HTMLElement or long)? before = null); |
+ [RaisesException] void remove(); // ChildNode overload |
+ void remove(long index); |
+ [RaisesException, TypeChecking=Interface] setter void (unsigned long index, HTMLOptionElement? option); |
readonly attribute HTMLCollection selectedOptions; |
- attribute long selectedIndex; |
- attribute DOMString value; |
+ attribute long selectedIndex; |
+ attribute DOMString value; |
readonly attribute boolean willValidate; |
readonly attribute ValidityState validity; |
readonly attribute DOMString validationMessage; |
boolean checkValidity(); |
- void setCustomValidity([TreatUndefinedAs=NullString] DOMString? error); |
+ boolean reportValidity(); |
+ void setCustomValidity(DOMString error); |
readonly attribute NodeList labels; |
}; |