2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2013-02-19 09:54:23 +04:00
|
|
|
/* 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/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
|
|
|
* http://www.whatwg.org/specs/web-apps/current-work/#the-textarea-element
|
|
|
|
* http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
|
|
|
|
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
|
|
|
|
* Opera Software ASA. You are granted a license to use, reproduce
|
|
|
|
* and create derivative works of this document.
|
|
|
|
*/
|
|
|
|
|
|
|
|
interface nsIEditor;
|
2017-05-18 10:07:25 +03:00
|
|
|
interface XULControllers;
|
2013-02-19 09:54:23 +04:00
|
|
|
|
2019-10-17 18:38:39 +03:00
|
|
|
[Exposed=Window]
|
2013-02-19 09:54:23 +04:00
|
|
|
interface HTMLTextAreaElement : HTMLElement {
|
2019-10-17 18:38:39 +03:00
|
|
|
[HTMLConstructor] constructor();
|
|
|
|
|
2017-11-09 08:35:04 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
|
|
|
attribute DOMString autocomplete;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-02-19 09:54:23 +04:00
|
|
|
attribute unsigned long cols;
|
2023-06-06 10:51:37 +03:00
|
|
|
[CEReactions, Pure, SetterThrows]
|
|
|
|
attribute DOMString dirName;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-02-19 09:54:23 +04:00
|
|
|
attribute boolean disabled;
|
|
|
|
[Pure]
|
|
|
|
readonly attribute HTMLFormElement? form;
|
|
|
|
// attribute DOMString inputMode;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-02-19 09:54:23 +04:00
|
|
|
attribute long maxLength;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2016-08-17 07:11:24 +03:00
|
|
|
attribute long minLength;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-02-19 09:54:23 +04:00
|
|
|
attribute DOMString name;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-02-19 09:54:23 +04:00
|
|
|
attribute DOMString placeholder;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-02-19 09:54:23 +04:00
|
|
|
attribute boolean readOnly;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-02-19 09:54:23 +04:00
|
|
|
attribute boolean required;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-02-19 09:54:23 +04:00
|
|
|
attribute unsigned long rows;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
2013-02-19 09:54:23 +04:00
|
|
|
attribute DOMString wrap;
|
|
|
|
|
|
|
|
[Constant]
|
|
|
|
readonly attribute DOMString type;
|
2017-10-31 02:14:51 +03:00
|
|
|
[CEReactions, Throws, Pure]
|
2013-02-19 09:54:23 +04:00
|
|
|
attribute DOMString defaultValue;
|
2021-04-11 06:13:32 +03:00
|
|
|
[CEReactions, SetterThrows] attribute [LegacyNullToEmptyString] DOMString value;
|
2019-08-28 20:51:37 +03:00
|
|
|
[BinaryName="getTextLength"]
|
2013-02-19 09:54:23 +04:00
|
|
|
readonly attribute unsigned long textLength;
|
|
|
|
|
|
|
|
readonly attribute boolean willValidate;
|
|
|
|
readonly attribute ValidityState validity;
|
2017-07-14 06:46:28 +03:00
|
|
|
[Throws]
|
2013-02-19 09:54:23 +04:00
|
|
|
readonly attribute DOMString validationMessage;
|
|
|
|
boolean checkValidity();
|
2016-04-15 11:13:00 +03:00
|
|
|
boolean reportValidity();
|
2022-09-21 10:44:58 +03:00
|
|
|
undefined setCustomValidity(DOMString error);
|
2013-02-19 09:54:23 +04:00
|
|
|
|
2017-06-16 03:04:00 +03:00
|
|
|
readonly attribute NodeList labels;
|
2013-02-19 09:54:23 +04:00
|
|
|
|
2022-09-21 10:44:58 +03:00
|
|
|
undefined select();
|
2013-02-19 09:54:23 +04:00
|
|
|
[Throws]
|
2016-08-09 00:19:00 +03:00
|
|
|
attribute unsigned long? selectionStart;
|
2013-02-19 09:54:23 +04:00
|
|
|
[Throws]
|
2016-08-09 00:19:00 +03:00
|
|
|
attribute unsigned long? selectionEnd;
|
2013-02-19 09:54:23 +04:00
|
|
|
[Throws]
|
2016-08-09 00:19:00 +03:00
|
|
|
attribute DOMString? selectionDirection;
|
2013-10-04 19:30:07 +04:00
|
|
|
[Throws]
|
2022-09-21 10:44:58 +03:00
|
|
|
undefined setRangeText(DOMString replacement);
|
2013-10-04 19:30:07 +04:00
|
|
|
[Throws]
|
2022-09-21 10:44:58 +03:00
|
|
|
undefined setRangeText(DOMString replacement, unsigned long start,
|
2013-10-04 19:30:07 +04:00
|
|
|
unsigned long end, optional SelectionMode selectionMode = "preserve");
|
2013-02-19 09:54:23 +04:00
|
|
|
[Throws]
|
2022-09-21 10:44:58 +03:00
|
|
|
undefined setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
|
2013-02-19 09:54:23 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
partial interface HTMLTextAreaElement {
|
2017-10-31 02:14:51 +03:00
|
|
|
// Chrome-only Mozilla extensions
|
2013-02-19 09:54:23 +04:00
|
|
|
|
|
|
|
[Throws, ChromeOnly]
|
2017-05-18 10:07:25 +03:00
|
|
|
readonly attribute XULControllers controllers;
|
2013-02-19 09:54:23 +04:00
|
|
|
};
|
|
|
|
|
2019-09-24 18:22:26 +03:00
|
|
|
HTMLTextAreaElement includes MozEditableElement;
|
2017-03-20 19:08:01 +03:00
|
|
|
|
|
|
|
partial interface HTMLTextAreaElement {
|
|
|
|
[ChromeOnly]
|
|
|
|
attribute DOMString previewValue;
|
|
|
|
};
|