aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/HTMLTextAreaElement.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webidls/HTMLTextAreaElement.webidl')
-rw-r--r--components/script/dom/webidls/HTMLTextAreaElement.webidl74
1 files changed, 48 insertions, 26 deletions
diff --git a/components/script/dom/webidls/HTMLTextAreaElement.webidl b/components/script/dom/webidls/HTMLTextAreaElement.webidl
index f92e662c354..b726946bc48 100644
--- a/components/script/dom/webidls/HTMLTextAreaElement.webidl
+++ b/components/script/dom/webidls/HTMLTextAreaElement.webidl
@@ -1,47 +1,69 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#htmltextareaelement
+[Exposed=Window]
interface HTMLTextAreaElement : HTMLElement {
- // attribute DOMString autocomplete;
- // attribute boolean autofocus;
- [SetterThrows]
- attribute unsigned long cols;
- // attribute DOMString dirName;
+ [HTMLConstructor] constructor();
+
+ // [CEReactions]
+ // attribute DOMString autocomplete;
+ // [CEReactions]
+ // attribute boolean autofocus;
+ [CEReactions, SetterThrows]
+ attribute unsigned long cols;
+ [CEReactions]
+ attribute DOMString dirName;
+ [CEReactions]
attribute boolean disabled;
readonly attribute HTMLFormElement? form;
- // attribute DOMString inputMode;
- // attribute long maxLength;
- // attribute long minLength;
+ // [CEReactions]
+ // attribute DOMString inputMode;
+ [CEReactions, SetterThrows]
+ attribute long maxLength;
+ [CEReactions, SetterThrows]
+ attribute long minLength;
+ [CEReactions]
attribute DOMString name;
+ [CEReactions]
attribute DOMString placeholder;
+ [CEReactions]
attribute boolean readOnly;
+ [CEReactions]
attribute boolean required;
- [SetterThrows]
+ [CEReactions, SetterThrows]
attribute unsigned long rows;
+ [CEReactions]
attribute DOMString wrap;
readonly attribute DOMString type;
+ [CEReactions]
attribute DOMString defaultValue;
- [TreatNullAs=EmptyString] attribute DOMString value;
- //readonly attribute unsigned long textLength;
+ attribute [TreatNullAs=EmptyString] DOMString value;
+ readonly attribute unsigned long textLength;
- //readonly attribute boolean willValidate;
- //readonly attribute ValidityState validity;
- //readonly attribute DOMString validationMessage;
- //boolean checkValidity();
- //boolean reportValidity();
- //void setCustomValidity(DOMString error);
+ readonly attribute boolean willValidate;
+ readonly attribute ValidityState validity;
+ readonly attribute DOMString validationMessage;
+ boolean checkValidity();
+ boolean reportValidity();
+ void setCustomValidity(DOMString error);
readonly attribute NodeList labels;
- //void select();
- attribute unsigned long selectionStart;
- attribute unsigned long selectionEnd;
- attribute DOMString selectionDirection;
- //void setRangeText(DOMString replacement);
- //void setRangeText(DOMString replacement, unsigned long start, unsigned long end,
- // optional SelectionMode selectionMode = "preserve");
- void setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
+ void select();
+ [SetterThrows]
+ attribute unsigned long? selectionStart;
+ [SetterThrows]
+ attribute unsigned long? selectionEnd;
+ [SetterThrows]
+ attribute DOMString? selectionDirection;
+ [Throws]
+ void setRangeText(DOMString replacement);
+ [Throws]
+ void setRangeText(DOMString replacement, unsigned long start, unsigned long end,
+ optional SelectionMode selectionMode = "preserve");
+ [Throws]
+ void setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
};