OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright (C) 2006, 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
| 4 * Copyright (C) 2011 Motorola Mobility, Inc. All rights reserved. |
| 5 * |
| 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. |
| 10 * |
| 11 * This library is distributed in the hope that it will be useful, |
| 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 * Library General Public License for more details. |
| 15 * |
| 16 * You should have received a copy of the GNU Library General Public License |
| 17 * along with this library; see the file COPYING.LIB. If not, write to |
| 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 19 * Boston, MA 02110-1301, USA. |
| 20 */ |
| 21 |
| 22 module html { |
| 23 |
| 24 interface HTMLTextAreaElement : HTMLElement { |
| 25 attribute [Reflect] boolean autofocus; |
| 26 attribute long cols; |
| 27 attribute [Reflect] DOMString dirName; |
| 28 attribute [Reflect] boolean disabled; |
| 29 readonly attribute HTMLFormElement form; |
| 30 attribute long maxLength setter raises(DOMException); |
| 31 attribute [TreatNullAs=NullString] DOMString name; |
| 32 attribute [Reflect] DOMString placeholder; |
| 33 attribute [Reflect] boolean readOnly; |
| 34 attribute [Reflect] boolean required; |
| 35 attribute long rows; |
| 36 attribute [Reflect] DOMString wrap; |
| 37 |
| 38 readonly attribute DOMString type; |
| 39 attribute [TreatNullAs=NullString] DOMString defaultValue; |
| 40 attribute [TreatNullAs=NullString] DOMString value; |
| 41 readonly attribute unsigned long textLength; |
| 42 |
| 43 readonly attribute boolean willValidate; |
| 44 readonly attribute ValidityState validity; |
| 45 readonly attribute DOMString validationMessage; |
| 46 boolean checkValidity(); |
| 47 void setCustomValidity(in [TreatNullAs=NullString, TreatUndefinedAs=Null
String] DOMString error); |
| 48 |
| 49 readonly attribute NodeList labels; |
| 50 |
| 51 void select(); |
| 52 attribute long selectionStart; |
| 53 attribute long selectionEnd; |
| 54 attribute DOMString selectionDirection; |
| 55 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C |
| 56 void setSelectionRange(in long start, in long end); |
| 57 #else |
| 58 void setSelectionRange(in [Optional=DefaultIsUndefined] long start, |
| 59 in [Optional=DefaultIsUndefined] long end, |
| 60 in [Optional] DOMString direction); |
| 61 #endif |
| 62 |
| 63 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C |
| 64 attribute [Reflect] DOMString accessKey; |
| 65 #endif |
| 66 }; |
| 67 } |
OLD | NEW |