summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLTextAreaElement.idl
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/html/HTMLTextAreaElement.idl')
-rw-r--r--Source/WebCore/html/HTMLTextAreaElement.idl36
1 files changed, 12 insertions, 24 deletions
diff --git a/Source/WebCore/html/HTMLTextAreaElement.idl b/Source/WebCore/html/HTMLTextAreaElement.idl
index 9533d602c..f9b2db4c9 100644
--- a/Source/WebCore/html/HTMLTextAreaElement.idl
+++ b/Source/WebCore/html/HTMLTextAreaElement.idl
@@ -21,28 +21,30 @@
interface HTMLTextAreaElement : HTMLElement {
[Reflect] attribute boolean autofocus;
- attribute long cols;
[Reflect] attribute DOMString dirName;
[Reflect] attribute boolean disabled;
readonly attribute HTMLFormElement form;
- [SetterRaisesException] attribute long maxLength;
+ [SetterMayThrowException] attribute long minLength;
+ [SetterMayThrowException] attribute long maxLength;
[Reflect] attribute DOMString name;
[Reflect] attribute DOMString placeholder;
[Reflect] attribute boolean readOnly;
[Reflect] attribute boolean required;
- attribute long rows;
+ attribute unsigned long rows;
+ attribute unsigned long cols;
[Reflect] attribute DOMString wrap;
readonly attribute DOMString type;
- [TreatNullAs=NullString] attribute DOMString defaultValue;
- [TreatNullAs=NullString] attribute DOMString value;
+ attribute DOMString defaultValue;
+ [TreatNullAs=EmptyString] attribute DOMString value;
readonly attribute unsigned long textLength;
readonly attribute boolean willValidate;
readonly attribute ValidityState validity;
readonly attribute DOMString validationMessage;
boolean checkValidity();
- void setCustomValidity([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString error);
+ [EnabledAtRuntime=InteractiveFormValidation] boolean reportValidity();
+ void setCustomValidity(DOMString error);
readonly attribute NodeList labels;
@@ -51,24 +53,10 @@ interface HTMLTextAreaElement : HTMLElement {
attribute long selectionEnd;
attribute DOMString selectionDirection;
- [RaisesException] void setRangeText(DOMString replacement);
- [RaisesException] void setRangeText(DOMString replacement,
- unsigned long start,
- unsigned long end,
- [Default=NullString] optional DOMString selectionMode);
+ [MayThrowException] void setRangeText(DOMString replacement);
+ [MayThrowException] void setRangeText(DOMString replacement, unsigned long start, unsigned long end, optional DOMString selectionMode);
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
- void setSelectionRange(long start, long end);
-#else
- void setSelectionRange([Default=Undefined] optional long start,
- [Default=Undefined] optional long end,
- optional DOMString direction);
-#endif
+ void setSelectionRange(optional long start = 0, optional long end = 0, optional DOMString direction);
- [Conditional=IOS_AUTOCORRECT_AND_AUTOCAPITALIZE] attribute boolean autocorrect;
- [Conditional=IOS_AUTOCORRECT_AND_AUTOCAPITALIZE, TreatNullAs=NullString] attribute DOMString autocapitalize;
-
-#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
- [Reflect] attribute DOMString accessKey;
-#endif
+ attribute DOMString autocomplete;
};