Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include "nsIDOMHTMLElement.idl"
8 interface nsIControllers;
9 interface nsIDOMValidityState;
11 /**
12 * The nsIDOMHTMLTextAreaElement interface is the interface to a
13 * [X]HTML textarea element.
14 *
15 * This interface is trying to follow the DOM Level 2 HTML specification:
16 * http://www.w3.org/TR/DOM-Level-2-HTML/
17 *
18 * with changes from the work-in-progress WHATWG HTML specification:
19 * http://www.whatwg.org/specs/web-apps/current-work/
20 */
22 [scriptable, uuid(7a4aeb2e-fcf3-443e-b002-ca1c8ea322e9)]
23 interface nsIDOMHTMLTextAreaElement : nsISupports
24 {
25 attribute boolean autofocus;
26 attribute unsigned long cols;
27 attribute boolean disabled;
28 readonly attribute nsIDOMHTMLFormElement form;
29 attribute long maxLength;
30 attribute DOMString name;
31 attribute DOMString placeholder;
32 attribute boolean readOnly;
33 attribute boolean required;
34 attribute unsigned long rows;
35 /**
36 * Reflects the wrap content attribute. Possible values are "soft", "hard" and
37 * "off". "soft" is the default.
38 */
39 [Null(Stringify)]
40 attribute DOMString wrap;
42 readonly attribute DOMString type;
43 attribute DOMString defaultValue;
44 attribute DOMString value;
45 readonly attribute long textLength;
47 // The following lines are part of the constraint validation API, see:
48 // http://www.whatwg.org/specs/web-apps/current-work/#the-constraint-validation-api
49 readonly attribute boolean willValidate;
50 readonly attribute nsIDOMValidityState validity;
51 readonly attribute DOMString validationMessage;
52 boolean checkValidity();
53 void setCustomValidity(in DOMString error);
55 void select();
56 attribute long selectionStart;
57 attribute long selectionEnd;
58 void setSelectionRange(in long selectionStart, in long selectionEnd, [optional] in DOMString direction);
59 attribute DOMString selectionDirection;
62 // Mozilla extensions
63 // Please make sure to update the HTMLTextAreaElement Web IDL interface to
64 // mirror the list of Mozilla extensions here when changing it.
65 readonly attribute nsIControllers controllers;
66 };