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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/HTMLTemplateElement.idl ('k') | Source/core/html/HTMLTitleElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLTextAreaElement.idl
diff --git a/Source/core/html/HTMLTextAreaElement.idl b/Source/core/html/HTMLTextAreaElement.idl
index 6a4f52da237916697524e8d3d932a56a986c52b4..608f3bb25f56ab2c35cbb573710bd07f735c7987 100644
--- a/Source/core/html/HTMLTextAreaElement.idl
+++ b/Source/core/html/HTMLTextAreaElement.idl
@@ -19,13 +19,17 @@
* Boston, MA 02110-1301, USA.
*/
+// https://html.spec.whatwg.org/#the-textarea-element
+
interface HTMLTextAreaElement : HTMLElement {
- attribute DOMString autocapitalize;
+ // attribute DOMString autocomplete;
[Reflect] attribute boolean autofocus;
+ // TODO(philipj): cols and rows should be unsigned long.
attribute 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;
@@ -34,7 +38,6 @@ interface HTMLTextAreaElement : HTMLElement {
[Reflect] attribute boolean required;
attribute long rows;
[Reflect] attribute DOMString wrap;
- [RuntimeEnabled=InputModeAttribute, Reflect] attribute DOMString inputMode;
readonly attribute DOMString type;
attribute DOMString defaultValue;
@@ -46,22 +49,29 @@ interface HTMLTextAreaElement : HTMLElement {
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();
+ // 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
+ attribute DOMString autocapitalize;
};
« 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