Rubber-stamped by Brady Eidson.
[webbrowser.git] / WebCore / html / HTMLTextAreaElement.idl
blob107a1fed2ba1e8b822bbd53c48dba13739e7dca8
1 /*
2 * Copyright (C) 2006 Apple Computer, Inc.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
21 module html {
23 interface [
24 GenerateConstructor,
25 InterfaceUUID=8b16bba6-efa9-4887-b863-308b4f9b9202,
26 ImplementationUUID=2414be6e-bae0-472d-b124-beed5ca82d3b
27 ] HTMLTextAreaElement : HTMLElement {
28 attribute [ConvertNullToNullString] DOMString defaultValue;
29 readonly attribute HTMLFormElement form;
30 #if !defined(LANGUAGE_COM) || !LANGUAGE_COM
31 readonly attribute ValidityState validity;
32 #endif
33 attribute [ConvertNullToNullString] DOMString accessKey;
34 attribute long cols;
35 attribute boolean disabled;
36 attribute boolean autofocus;
37 attribute long maxLength
38 setter raises(DOMException);
39 attribute [ConvertNullToNullString] DOMString name;
40 attribute [ConvertNullToNullString, Reflect] DOMString placeholder;
41 attribute boolean readOnly;
42 attribute boolean required;
43 attribute long rows;
44 readonly attribute DOMString type;
45 attribute [ConvertNullToNullString] DOMString value;
46 readonly attribute unsigned long textLength;
48 void select();
50 readonly attribute boolean willValidate;
51 readonly attribute DOMString validationMessage;
52 boolean checkValidity();
53 void setCustomValidity(in [ConvertUndefinedOrNullToNullString] DOMString error);
55 // WinIE & FireFox extension:
56 attribute long selectionStart;
57 attribute long selectionEnd;
58 void setSelectionRange(in long start, in long end);