OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 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 |
| 21 module html { |
| 22 |
| 23 interface [ |
| 24 CustomNamedGetter, |
| 25 V8CustomToJSObject |
| 26 ] HTMLDocument : Document { |
| 27 [JSCustom, V8Custom] void open(); |
| 28 void close(); |
| 29 [Custom] void write(in [Optional=DefaultIsUndefined] DOMString text); |
| 30 [Custom] void writeln(in [Optional=DefaultIsUndefined] DOMString text); |
| 31 |
| 32 readonly attribute HTMLCollection embeds; |
| 33 readonly attribute HTMLCollection plugins; |
| 34 readonly attribute HTMLCollection scripts; |
| 35 |
| 36 // Extensions |
| 37 |
| 38 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT |
| 39 // FIXME: This should eventually be available (if they are wanted) for a
ll languages. |
| 40 attribute [Custom, Deletable] HTMLAllCollection all; |
| 41 #endif |
| 42 |
| 43 void clear(); |
| 44 |
| 45 void captureEvents(); |
| 46 void releaseEvents(); |
| 47 |
| 48 readonly attribute long width; |
| 49 readonly attribute long height; |
| 50 attribute [TreatNullAs=NullString] DOMString dir; |
| 51 attribute [TreatNullAs=NullString] DOMString designMode; |
| 52 readonly attribute DOMString compatMode; |
| 53 |
| 54 readonly attribute Element activeElement; |
| 55 boolean hasFocus(); |
| 56 |
| 57 // Deprecated attributes |
| 58 attribute [TreatNullAs=NullString] DOMString bgColor; |
| 59 attribute [TreatNullAs=NullString] DOMString fgColor; |
| 60 attribute [TreatNullAs=NullString] DOMString alinkColor; |
| 61 attribute [TreatNullAs=NullString] DOMString linkColor; |
| 62 attribute [TreatNullAs=NullString] DOMString vlinkColor; |
| 63 }; |
| 64 |
| 65 } |
OLD | NEW |