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

Unified Diff: core/html/HTMLTextAreaElement.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/HTMLTemplateElement.idl ('k') | core/html/HTMLTitleElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/html/HTMLTextAreaElement.idl
diff --git a/core/html/HTMLTextAreaElement.idl b/core/html/HTMLTextAreaElement.idl
index be1804dc5b1c50f53d5549584ac22cc7d874d0fb..a937807268b0636357fda157ef961f83db658016 100644
--- a/core/html/HTMLTextAreaElement.idl
+++ b/core/html/HTMLTextAreaElement.idl
@@ -19,20 +19,24 @@
* Boston, MA 02110-1301, USA.
*/
+// https://html.spec.whatwg.org/#the-textarea-element
+
interface HTMLTextAreaElement : HTMLElement {
+ // attribute DOMString autocomplete;
[Reflect] attribute boolean autofocus;
- attribute long cols;
+ attribute unsigned long cols;
[Reflect] attribute DOMString dirName;
[Reflect] attribute boolean disabled;
- [ImplementedAs=formOwner] readonly attribute HTMLFormElement form;
+ [ImplementedAs=formOwner] readonly attribute HTMLFormElement? form;
+ [RuntimeEnabled=InputModeAttribute, Reflect] attribute DOMString inputMode;
[RaisesException=Setter] attribute long maxLength;
+ [RaisesException=Setter] attribute long minLength;
[Reflect] attribute DOMString name;
[Reflect] attribute DOMString placeholder;
[Reflect] attribute boolean readOnly;
[Reflect] attribute boolean required;
- attribute long rows;
+ attribute unsigned long rows;
[Reflect] attribute DOMString wrap;
- [RuntimeEnabled=InputModeAttribute, Reflect] attribute DOMString inputMode;
readonly attribute DOMString type;
attribute DOMString defaultValue;
@@ -43,22 +47,29 @@ interface HTMLTextAreaElement : HTMLElement {
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;
void select();
+ // TODO(philipj): selectionStart and selectionEnd should be unsigned long.
attribute long selectionStart;
attribute long selectionEnd;
attribute DOMString selectionDirection;
-
[RaisesException] void setRangeText(DOMString replacement);
+ // TODO(philipj): The selectionMode argument should be a SelectionMode enum.
[RaisesException] void setRangeText(DOMString replacement,
- unsigned long start,
- unsigned long end,
- optional DOMString selectionMode = null);
-
+ unsigned long start,
+ unsigned long end,
+ optional DOMString selectionMode = null);
+ // TODO(philipj): The start and end arguments should be unsigned long and
+ // should not be optional.
void setSelectionRange([Default=Undefined] optional long start,
[Default=Undefined] optional long end,
optional DOMString direction);
+
+ // HTML autocapitalize proposal
+ // https://github.com/mounirlamouri/html-autocapitalize/blob/master/proposal.md
+ [Measure] attribute DOMString autocapitalize;
};
« no previous file with comments | « core/html/HTMLTemplateElement.idl ('k') | core/html/HTMLTitleElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698