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

Unified Diff: Source/core/html/HTMLInputElement.idl

Issue 990993004: Sync HTML element interfaces H-K with the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 | « Source/core/html/HTMLImageElement.idl ('k') | Source/core/html/HTMLKeygenElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLInputElement.idl
diff --git a/Source/core/html/HTMLInputElement.idl b/Source/core/html/HTMLInputElement.idl
index 02864ca1dc0b1ea909e9ec96b08be99cd6ac1b96..be73bad0f21df45fa7a215898ee31f86ca6b9b0a 100644
--- a/Source/core/html/HTMLInputElement.idl
+++ b/Source/core/html/HTMLInputElement.idl
@@ -19,11 +19,10 @@
* Boston, MA 02110-1301, USA.
*/
-// http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#htmlinputelement
+// https://html.spec.whatwg.org/#htmlinputelement
interface HTMLInputElement : HTMLElement {
[Reflect] attribute DOMString accept;
- [Reflect] attribute DOMString align;
[Reflect] attribute DOMString alt;
[Reflect] attribute DOMString autocomplete;
[Reflect] attribute boolean autofocus;
@@ -31,10 +30,10 @@ interface HTMLInputElement : HTMLElement {
attribute boolean checked;
[Reflect] attribute DOMString dirName;
[Reflect] attribute boolean disabled;
- [ImplementedAs=formOwner] readonly attribute HTMLFormElement form;
+ [ImplementedAs=formOwner] readonly attribute HTMLFormElement? form;
// The 'files' attribute is intentionally not readonly.
// https://www.w3.org/Bugs/Public/show_bug.cgi?id=22682
- attribute FileList files;
+ attribute FileList? files;
[Reflect, URL] attribute DOMString formAction;
[CustomElementCallbacks] attribute DOMString formEnctype;
[CustomElementCallbacks] attribute DOMString formMethod;
@@ -43,61 +42,69 @@ interface HTMLInputElement : HTMLElement {
[CustomElementCallbacks] attribute unsigned long height;
attribute boolean indeterminate;
[RuntimeEnabled=InputModeAttribute, Reflect] attribute DOMString inputMode;
- readonly attribute HTMLElement list;
+ readonly attribute HTMLElement? list;
[Reflect] attribute DOMString max;
[RaisesException=Setter, CustomElementCallbacks] attribute long maxLength;
- [RaisesException=Setter, CustomElementCallbacks] attribute long minLength;
[Reflect] attribute DOMString min;
+ [RaisesException=Setter, CustomElementCallbacks] attribute long minLength;
[Reflect] attribute boolean multiple;
[Reflect] attribute DOMString name;
[Reflect] attribute DOMString pattern;
[Reflect] attribute DOMString placeholder;
[Reflect] attribute boolean readOnly;
[Reflect] attribute boolean required;
- [RaisesException=Setter, CustomElementCallbacks] attribute unsigned long size; // Changed string -> long -> unsigned long
+ [RaisesException=Setter, CustomElementCallbacks] attribute unsigned long size;
[Reflect, URL] attribute DOMString src;
[Reflect] attribute DOMString step;
- [CustomElementCallbacks] attribute DOMString type; // readonly dropped as part of DOM level 2
+ [CustomElementCallbacks] attribute DOMString type;
[Reflect=value, CustomElementCallbacks] attribute DOMString defaultValue;
- [Reflect] attribute DOMString useMap;
- // See the discussion in https://bugs.webkit.org/show_bug.cgi?id=100085
[TreatNullAs=EmptyString, RaisesException=Setter, CustomElementCallbacks] attribute DOMString value;
[RaisesException=Setter, CustomElementCallbacks] attribute Date? valueAsDate;
[RaisesException=Setter, CustomElementCallbacks] attribute unrestricted double valueAsNumber;
+ // Note: The spec has valueLow and valueHigh for two-valued range controls.
+ // https://www.w3.org/Bugs/Public/show_bug.cgi?id=13154
+ [CustomElementCallbacks] attribute unsigned long width;
[RaisesException, CustomElementCallbacks] void stepUp(optional long n = 1);
[RaisesException, CustomElementCallbacks] void stepDown(optional long n = 1);
- [CustomElementCallbacks] attribute unsigned long width;
readonly attribute boolean willValidate;
readonly attribute ValidityState validity;
readonly attribute DOMString validationMessage;
boolean checkValidity();
boolean reportValidity();
+ // FIXME: The error argument should not be nullable.
void setCustomValidity([TreatUndefinedAs=NullString] DOMString? error);
readonly attribute NodeList labels;
void select();
+ // FIXME: selectionStart and selectionEnd should be unsigned long.
[RaisesException, ImplementedAs=selectionStartForBinding] attribute long selectionStart;
[RaisesException, ImplementedAs=selectionEndForBinding] attribute long selectionEnd;
[RaisesException, ImplementedAs=selectionDirectionForBinding] attribute DOMString selectionDirection;
-
[RaisesException] void setRangeText(DOMString replacement);
+ // FIXME: The selectionMode argument should be a SelectionMode enum.
[RaisesException] void setRangeText(DOMString replacement,
- unsigned long start,
- unsigned long end,
- optional DOMString selectionMode = "preserve");
-
+ unsigned long start,
+ unsigned long end,
+ optional DOMString selectionMode = "preserve");
+ // FIXME: The start and end arguments should be unsigned long and should not have [Default=Undefined].
[RaisesException, ImplementedAs=setSelectionRangeForBinding]
void setSelectionRange([Default=Undefined] optional long start,
[Default=Undefined] optional long end,
optional DOMString direction);
- // Non-standard attributes
- [Reflect, MeasureAs=PrefixedDirectoryAttribute] attribute boolean webkitdirectory;
- [Reflect, MeasureAs=IncrementalAttribute] attribute boolean incremental;
+ // obsolete members
+ // https://html.spec.whatwg.org/#HTMLInputElement-partial
+ [Reflect] attribute DOMString align;
+ [Reflect] attribute DOMString useMap;
- // See http://www.w3.org/TR/html-media-capture/
+ // HTML Media Capture
+ // http://www.w3.org/TR/html-media-capture/
[RuntimeEnabled=MediaCapture, Reflect] attribute boolean capture;
+
+ // Non-standard APIs
+ [Reflect, MeasureAs=PrefixedDirectoryAttribute] attribute boolean webkitdirectory;
+ [Reflect, MeasureAs=IncrementalAttribute] attribute boolean incremental;
};
« no previous file with comments | « Source/core/html/HTMLImageElement.idl ('k') | Source/core/html/HTMLKeygenElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698