18e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project/*
206ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen * Copyright (C) 2006, 2010 Apple Inc. All rights reserved.
38e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
48e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project *
58e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * This library is free software; you can redistribute it and/or
68e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * modify it under the terms of the GNU Library General Public
78e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * License as published by the Free Software Foundation; either
88e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * version 2 of the License, or (at your option) any later version.
98e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project *
108e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * This library is distributed in the hope that it will be useful,
118e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * but WITHOUT ANY WARRANTY; without even the implied warranty of
128e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
138e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * Library General Public License for more details.
148e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project *
158e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * You should have received a copy of the GNU Library General Public License
168e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * along with this library; see the file COPYING.LIB.  If not, write to
178e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
188e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * Boston, MA 02110-1301, USA.
198e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project */
208e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project
218e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Projectmodule html {
228e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project
23d0825bca7fe65beaee391d30da42e937db621564Steve Block    interface HTMLTextAreaElement : HTMLElement {
2406ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen        attribute [ConvertNullToNullString] DOMString defaultValue;
2506ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen        readonly attribute HTMLFormElement form;
2606ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen        readonly attribute ValidityState validity;
2706ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen        attribute [Reflect] DOMString accessKey;
2806ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen        attribute long cols;
29ca9cb53ed1119a3fd98fafa0972ffeb56dee1c24Steve Block        attribute [Reflect] boolean disabled;
30ca9cb53ed1119a3fd98fafa0972ffeb56dee1c24Steve Block        attribute [Reflect] boolean autofocus;
3106ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen        attribute long maxLength setter raises(DOMException);
3206ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen        attribute [ConvertNullToNullString] DOMString name;
3306ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen        attribute [Reflect] DOMString placeholder;
34ca9cb53ed1119a3fd98fafa0972ffeb56dee1c24Steve Block        attribute [Reflect] boolean readOnly;
35ca9cb53ed1119a3fd98fafa0972ffeb56dee1c24Steve Block        attribute [Reflect] boolean required;
3606ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen        attribute long rows;
3706ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen        readonly attribute DOMString type;
3806ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen        attribute [ConvertNullToNullString] DOMString value;
3906ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen        readonly attribute unsigned long textLength;
408e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project
4106ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen        void select();
428e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project
4306ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen        readonly attribute boolean willValidate;
4406ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen        readonly attribute DOMString validationMessage;
4506ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen        boolean checkValidity();
4606ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen        void setCustomValidity(in [ConvertUndefinedOrNullToNullString] DOMString error);
4706ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen
4806ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen        // WinIE & FireFox extension:
4906ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen        attribute long selectionStart;
5006ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen        attribute long selectionEnd;
518e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project        void setSelectionRange(in long start, in long end);
5206ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen        readonly attribute NodeList labels;
538e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project    };
548e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project
558e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project}
56