Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Unified Diff: core/html/HTMLSelectElement.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/html/HTMLScriptElement.idl ('k') | core/html/HTMLShadowElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « core/html/HTMLScriptElement.idl ('k') | core/html/HTMLShadowElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698