HTMLInputElement.idl revision 8f72e70a9fd78eec56623b3a62e68f16b7b27e28
1/* 2 * Copyright (C) 2006 Apple Computer, Inc. 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 4 * 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. 9 * 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. 14 * 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. 19 */ 20 21module html { 22 23 interface [ 24 GenerateConstructor, 25 InterfaceUUID=8f388ea3-1c31-4cca-8edd-449d14e222e1, 26 ImplementationUUID=aeb56b87-a90e-4d9d-a4d5-7eec3687c338 27 ] HTMLInputElement : HTMLElement { 28 attribute [ConvertNullToNullString] DOMString defaultValue; 29 attribute boolean defaultChecked; 30 readonly attribute HTMLFormElement form; 31 attribute [ConvertNullToNullString] DOMString accept; 32 attribute [ConvertNullToNullString] DOMString accessKey; 33 attribute [ConvertNullToNullString] DOMString align; 34 attribute [ConvertNullToNullString] DOMString alt; 35 attribute boolean checked; 36 attribute boolean disabled; 37 attribute boolean autofocus; 38 attribute long maxLength; 39 attribute boolean multiple; 40 attribute [ConvertNullToNullString] DOMString name; 41 attribute boolean readOnly; 42#if defined(LANGUAGE_OBJECTIVE_C) 43 attribute [ConvertToString] DOMString size; // DOM level 2 changed this to a long, but our existing API is a string 44#else 45 // FIXME: the spec says this should be a long, not an unsigned long 46 attribute unsigned long size; // Changed string -> long as part of DOM level 2 47#endif 48 attribute [ConvertNullToNullString] DOMString src; 49 attribute [ConvertNullToNullString] DOMString type; // readonly dropped as part of DOM level 2 50 attribute [ConvertNullToNullString] DOMString useMap; 51 attribute [ConvertNullToNullString] DOMString value; 52 readonly attribute boolean willValidate; 53 void select(); 54 void click(); 55 56 // WinIE extension: 57 attribute boolean indeterminate; 58 59 // WinIE & FireFox extension: 60 61 attribute [Custom] long selectionStart; 62 attribute [Custom] long selectionEnd; 63 [Custom] void setSelectionRange(in long start, in long end); 64 65#if defined(LANGUAGE_OBJECTIVE_C) 66 // Objective-C extension: 67 readonly attribute DOMString altDisplayString; 68 readonly attribute URL absoluteImageURL; 69#endif 70 71#if !defined(LANGUAGE_COM) 72 readonly attribute FileList files; 73#endif 74 }; 75 76} 77