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

Side by Side Diff: Source/core/html/HTMLTextAreaElement.idl

Issue 1031473002: Sync HTML element interfaces S-V with the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: link to col element too 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/HTMLTemplateElement.idl ('k') | Source/core/html/HTMLTitleElement.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) 2011 Motorola Mobility, Inc. All rights reserved. 4 * Copyright (C) 2011 Motorola Mobility, Inc. 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 // https://html.spec.whatwg.org/#the-textarea-element
23
22 interface HTMLTextAreaElement : HTMLElement { 24 interface HTMLTextAreaElement : HTMLElement {
23 attribute DOMString autocapitalize; 25 // attribute DOMString autocomplete;
24 [Reflect] attribute boolean autofocus; 26 [Reflect] attribute boolean autofocus;
27 // TODO(philipj): cols and rows should be unsigned long.
25 attribute long cols; 28 attribute long cols;
26 [Reflect] attribute DOMString dirName; 29 [Reflect] attribute DOMString dirName;
27 [Reflect] attribute boolean disabled; 30 [Reflect] attribute boolean disabled;
28 [ImplementedAs=formOwner] readonly attribute HTMLFormElement form; 31 [ImplementedAs=formOwner] readonly attribute HTMLFormElement? form;
32 [RuntimeEnabled=InputModeAttribute, Reflect] attribute DOMString inputMode;
29 [RaisesException=Setter] attribute long maxLength; 33 [RaisesException=Setter] attribute long maxLength;
30 [RaisesException=Setter] attribute long minLength; 34 [RaisesException=Setter] attribute long minLength;
31 [Reflect] attribute DOMString name; 35 [Reflect] attribute DOMString name;
32 [Reflect] attribute DOMString placeholder; 36 [Reflect] attribute DOMString placeholder;
33 [Reflect] attribute boolean readOnly; 37 [Reflect] attribute boolean readOnly;
34 [Reflect] attribute boolean required; 38 [Reflect] attribute boolean required;
35 attribute long rows; 39 attribute long rows;
36 [Reflect] attribute DOMString wrap; 40 [Reflect] attribute DOMString wrap;
37 [RuntimeEnabled=InputModeAttribute, Reflect] attribute DOMString inputMode;
38 41
39 readonly attribute DOMString type; 42 readonly attribute DOMString type;
40 attribute DOMString defaultValue; 43 attribute DOMString defaultValue;
41 [TreatNullAs=NullString] attribute DOMString value; 44 [TreatNullAs=NullString] attribute DOMString value;
42 readonly attribute unsigned long textLength; 45 readonly attribute unsigned long textLength;
43 46
44 readonly attribute boolean willValidate; 47 readonly attribute boolean willValidate;
45 readonly attribute ValidityState validity; 48 readonly attribute ValidityState validity;
46 readonly attribute DOMString validationMessage; 49 readonly attribute DOMString validationMessage;
47 boolean checkValidity(); 50 boolean checkValidity();
48 boolean reportValidity(); 51 boolean reportValidity();
52 // FIXME: The error argument should not be nullable.
49 void setCustomValidity([TreatUndefinedAs=NullString] DOMString? error); 53 void setCustomValidity([TreatUndefinedAs=NullString] DOMString? error);
50 54
51 readonly attribute NodeList labels; 55 readonly attribute NodeList labels;
52 56
53 void select(); 57 void select();
58 // TODO(philipj): selectionStart and selectionEnd should be unsigned long.
54 attribute long selectionStart; 59 attribute long selectionStart;
55 attribute long selectionEnd; 60 attribute long selectionEnd;
56 attribute DOMString selectionDirection; 61 attribute DOMString selectionDirection;
57
58 [RaisesException] void setRangeText(DOMString replacement); 62 [RaisesException] void setRangeText(DOMString replacement);
63 // TODO(philipj): The selectionMode argument should be a SelectionMode enum.
59 [RaisesException] void setRangeText(DOMString replacement, 64 [RaisesException] void setRangeText(DOMString replacement,
60 unsigned long start, 65 unsigned long start,
61 unsigned long end, 66 unsigned long end,
62 optional DOMString selectionMode = null); 67 optional DOMString selectionMode = null) ;
63 68 // TODO(philipj): The start and end arguments should be unsigned long and
69 // should not be optional.
64 void setSelectionRange([Default=Undefined] optional long start, 70 void setSelectionRange([Default=Undefined] optional long start,
65 [Default=Undefined] optional long end, 71 [Default=Undefined] optional long end,
66 optional DOMString direction); 72 optional DOMString direction);
73
74 // HTML autocapitalize proposal
75 // https://github.com/mounirlamouri/html-autocapitalize/blob/master/proposal .md
76 attribute DOMString autocapitalize;
67 }; 77 };
OLDNEW
« no previous file with comments | « Source/core/html/HTMLTemplateElement.idl ('k') | Source/core/html/HTMLTitleElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698