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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLImageElement.idl ('k') | Source/core/html/HTMLKeygenElement.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 4 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
11 * This library is distributed in the hope that it will be useful, 11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details. 14 * Library General Public License for more details.
15 * 15 *
16 * You should have received a copy of the GNU Library General Public License 16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to 17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA. 19 * Boston, MA 02110-1301, USA.
20 */ 20 */
21 21
22 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element .html#htmlinputelement 22 // https://html.spec.whatwg.org/#htmlinputelement
23 23
24 interface HTMLInputElement : HTMLElement { 24 interface HTMLInputElement : HTMLElement {
25 [Reflect] attribute DOMString accept; 25 [Reflect] attribute DOMString accept;
26 [Reflect] attribute DOMString align;
27 [Reflect] attribute DOMString alt; 26 [Reflect] attribute DOMString alt;
28 [Reflect] attribute DOMString autocomplete; 27 [Reflect] attribute DOMString autocomplete;
29 [Reflect] attribute boolean autofocus; 28 [Reflect] attribute boolean autofocus;
30 [Reflect=checked] attribute boolean defaultChecked; 29 [Reflect=checked] attribute boolean defaultChecked;
31 attribute boolean checked; 30 attribute boolean checked;
32 [Reflect] attribute DOMString dirName; 31 [Reflect] attribute DOMString dirName;
33 [Reflect] attribute boolean disabled; 32 [Reflect] attribute boolean disabled;
34 [ImplementedAs=formOwner] readonly attribute HTMLFormElement form; 33 [ImplementedAs=formOwner] readonly attribute HTMLFormElement? form;
35 // The 'files' attribute is intentionally not readonly. 34 // The 'files' attribute is intentionally not readonly.
36 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=22682 35 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=22682
37 attribute FileList files; 36 attribute FileList? files;
38 [Reflect, URL] attribute DOMString formAction; 37 [Reflect, URL] attribute DOMString formAction;
39 [CustomElementCallbacks] attribute DOMString formEnctype; 38 [CustomElementCallbacks] attribute DOMString formEnctype;
40 [CustomElementCallbacks] attribute DOMString formMethod; 39 [CustomElementCallbacks] attribute DOMString formMethod;
41 [Reflect] attribute boolean formNoValidate; 40 [Reflect] attribute boolean formNoValidate;
42 [Reflect] attribute DOMString formTarget; 41 [Reflect] attribute DOMString formTarget;
43 [CustomElementCallbacks] attribute unsigned long height; 42 [CustomElementCallbacks] attribute unsigned long height;
44 attribute boolean indeterminate; 43 attribute boolean indeterminate;
45 [RuntimeEnabled=InputModeAttribute, Reflect] attribute DOMString inputMode; 44 [RuntimeEnabled=InputModeAttribute, Reflect] attribute DOMString inputMode;
46 readonly attribute HTMLElement list; 45 readonly attribute HTMLElement? list;
47 [Reflect] attribute DOMString max; 46 [Reflect] attribute DOMString max;
48 [RaisesException=Setter, CustomElementCallbacks] attribute long maxLength; 47 [RaisesException=Setter, CustomElementCallbacks] attribute long maxLength;
48 [Reflect] attribute DOMString min;
49 [RaisesException=Setter, CustomElementCallbacks] attribute long minLength; 49 [RaisesException=Setter, CustomElementCallbacks] attribute long minLength;
50 [Reflect] attribute DOMString min;
51 [Reflect] attribute boolean multiple; 50 [Reflect] attribute boolean multiple;
52 [Reflect] attribute DOMString name; 51 [Reflect] attribute DOMString name;
53 [Reflect] attribute DOMString pattern; 52 [Reflect] attribute DOMString pattern;
54 [Reflect] attribute DOMString placeholder; 53 [Reflect] attribute DOMString placeholder;
55 [Reflect] attribute boolean readOnly; 54 [Reflect] attribute boolean readOnly;
56 [Reflect] attribute boolean required; 55 [Reflect] attribute boolean required;
57 [RaisesException=Setter, CustomElementCallbacks] attribute unsigned long siz e; // Changed string -> long -> unsigned long 56 [RaisesException=Setter, CustomElementCallbacks] attribute unsigned long siz e;
58 [Reflect, URL] attribute DOMString src; 57 [Reflect, URL] attribute DOMString src;
59 [Reflect] attribute DOMString step; 58 [Reflect] attribute DOMString step;
60 [CustomElementCallbacks] attribute DOMString type; // readonly dropped as pa rt of DOM level 2 59 [CustomElementCallbacks] attribute DOMString type;
61 [Reflect=value, CustomElementCallbacks] attribute DOMString defaultValue; 60 [Reflect=value, CustomElementCallbacks] attribute DOMString defaultValue;
62 [Reflect] attribute DOMString useMap;
63 // See the discussion in https://bugs.webkit.org/show_bug.cgi?id=100085
64 [TreatNullAs=EmptyString, RaisesException=Setter, CustomElementCallbacks] at tribute DOMString value; 61 [TreatNullAs=EmptyString, RaisesException=Setter, CustomElementCallbacks] at tribute DOMString value;
65 [RaisesException=Setter, CustomElementCallbacks] attribute Date? valueAsDate ; 62 [RaisesException=Setter, CustomElementCallbacks] attribute Date? valueAsDate ;
66 [RaisesException=Setter, CustomElementCallbacks] attribute unrestricted doub le valueAsNumber; 63 [RaisesException=Setter, CustomElementCallbacks] attribute unrestricted doub le valueAsNumber;
64 // Note: The spec has valueLow and valueHigh for two-valued range controls.
65 // https://www.w3.org/Bugs/Public/show_bug.cgi?id=13154
66 [CustomElementCallbacks] attribute unsigned long width;
67 67
68 [RaisesException, CustomElementCallbacks] void stepUp(optional long n = 1); 68 [RaisesException, CustomElementCallbacks] void stepUp(optional long n = 1);
69 [RaisesException, CustomElementCallbacks] void stepDown(optional long n = 1) ; 69 [RaisesException, CustomElementCallbacks] void stepDown(optional long n = 1) ;
70 70
71 [CustomElementCallbacks] attribute unsigned long width;
72 readonly attribute boolean willValidate; 71 readonly attribute boolean willValidate;
73 readonly attribute ValidityState validity; 72 readonly attribute ValidityState validity;
74 readonly attribute DOMString validationMessage; 73 readonly attribute DOMString validationMessage;
75 boolean checkValidity(); 74 boolean checkValidity();
76 boolean reportValidity(); 75 boolean reportValidity();
76 // FIXME: The error argument should not be nullable.
77 void setCustomValidity([TreatUndefinedAs=NullString] DOMString? error); 77 void setCustomValidity([TreatUndefinedAs=NullString] DOMString? error);
78 78
79 readonly attribute NodeList labels; 79 readonly attribute NodeList labels;
80 80
81 void select(); 81 void select();
82 // FIXME: selectionStart and selectionEnd should be unsigned long.
82 [RaisesException, ImplementedAs=selectionStartForBinding] attribute long sel ectionStart; 83 [RaisesException, ImplementedAs=selectionStartForBinding] attribute long sel ectionStart;
83 [RaisesException, ImplementedAs=selectionEndForBinding] attribute long selec tionEnd; 84 [RaisesException, ImplementedAs=selectionEndForBinding] attribute long selec tionEnd;
84 [RaisesException, ImplementedAs=selectionDirectionForBinding] attribute DOMS tring selectionDirection; 85 [RaisesException, ImplementedAs=selectionDirectionForBinding] attribute DOMS tring selectionDirection;
85
86 [RaisesException] void setRangeText(DOMString replacement); 86 [RaisesException] void setRangeText(DOMString replacement);
87 // FIXME: The selectionMode argument should be a SelectionMode enum.
87 [RaisesException] void setRangeText(DOMString replacement, 88 [RaisesException] void setRangeText(DOMString replacement,
88 unsigned long start, 89 unsigned long start,
89 unsigned long end, 90 unsigned long end,
90 optional DOMString selectionMode = "preserve"); 91 optional DOMString selectionMode = "pres erve");
91 92 // FIXME: The start and end arguments should be unsigned long and should not have [Default=Undefined].
92 [RaisesException, ImplementedAs=setSelectionRangeForBinding] 93 [RaisesException, ImplementedAs=setSelectionRangeForBinding]
93 void setSelectionRange([Default=Undefined] optional long start, 94 void setSelectionRange([Default=Undefined] optional long start,
94 [Default=Undefined] optional long end, 95 [Default=Undefined] optional long end,
95 optional DOMString direction); 96 optional DOMString direction);
96 97
97 // Non-standard attributes 98 // obsolete members
99 // https://html.spec.whatwg.org/#HTMLInputElement-partial
100 [Reflect] attribute DOMString align;
101 [Reflect] attribute DOMString useMap;
102
103 // HTML Media Capture
104 // http://www.w3.org/TR/html-media-capture/
105 [RuntimeEnabled=MediaCapture, Reflect] attribute boolean capture;
106
107 // Non-standard APIs
98 [Reflect, MeasureAs=PrefixedDirectoryAttribute] attribute boolean webkitdire ctory; 108 [Reflect, MeasureAs=PrefixedDirectoryAttribute] attribute boolean webkitdire ctory;
99 [Reflect, MeasureAs=IncrementalAttribute] attribute boolean incremental; 109 [Reflect, MeasureAs=IncrementalAttribute] attribute boolean incremental;
100
101 // See http://www.w3.org/TR/html-media-capture/
102 [RuntimeEnabled=MediaCapture, Reflect] attribute boolean capture;
103 }; 110 };
OLDNEW
« 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