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; |
}; |