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[
22    CustomNamedGetter,
23] interface HTMLDocument : Document {
24    [Custom] void open();
25    void close();
26    [Custom] void write([Default=Undefined] optional DOMString text);
27    [Custom] void writeln([Default=Undefined] optional DOMString text);
28
29    readonly attribute HTMLCollection embeds;
30    readonly attribute HTMLCollection plugins;
31    readonly attribute HTMLCollection scripts;
32
33    // Extensions
34
35#if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
36    // FIXME: This should eventually be available (if they are wanted) for all languages.
37    [Custom, Replaceable, Deletable] readonly attribute HTMLAllCollection all;
38#endif
39
40    void clear();
41
42    void captureEvents();
43    void releaseEvents();
44
45    readonly attribute long width;
46    readonly attribute long height;
47             [TreatNullAs=NullString] attribute DOMString dir;
48             [TreatNullAs=NullString] attribute DOMString designMode;
49    readonly attribute DOMString compatMode;
50
51    readonly attribute Element activeElement;
52    boolean hasFocus();
53
54    // Deprecated attributes
55             [TreatNullAs=NullString] attribute DOMString bgColor;
56             [TreatNullAs=NullString] attribute DOMString fgColor;
57             [TreatNullAs=NullString] attribute DOMString alinkColor;
58             [TreatNullAs=NullString] attribute DOMString linkColor;
59             [TreatNullAs=NullString] attribute DOMString vlinkColor;
60};
61
62