Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
1 /* -*- Mode: C++; 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 "nsIDOMXULLabeledControlEl.idl"
7 interface nsIDOMHTMLInputElement;
9 [scriptable, uuid(7edd8215-5155-4845-a02f-dc2c08645cb9)]
10 interface nsIDOMXULTextBoxElement : nsIDOMXULControlElement
11 {
12 // inputField may be any type of editable field, such as an
13 // HTML <input type="text"> or <textarea>
14 readonly attribute nsIDOMNode inputField;
16 readonly attribute long textLength;
17 attribute long maxLength;
18 attribute long size;
19 attribute long selectionStart;
20 attribute long selectionEnd;
22 attribute DOMString value;
23 attribute DOMString type;
25 void select();
26 void setSelectionRange(in long selectionStart,
27 in long selectionEnd);
28 };