• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
21module html {
22
23    interface [
24        GenerateConstructor,
25        HasOverridingNameGetter,
26        InterfaceUUID=a183339c-8d74-412a-933d-6f6a4ad6266e,
27        ImplementationUUID=d0f7d966-033c-4cbf-847c-1461dacc2f6a
28    ] HTMLDocument : Document {
29        [Custom] void open();
30        void close();
31        [Custom] void write(in DOMString text);
32        [Custom] void writeln(in DOMString text);
33
34        readonly attribute HTMLCollection embeds;
35        readonly attribute HTMLCollection plugins;
36        readonly attribute HTMLCollection scripts;
37
38        // Extensions
39
40#if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
41        // FIXME: This should eventually be available (if they are wanted) for all languages.
42                 attribute [Custom, Deletable] HTMLCollection all;
43#endif
44
45        void clear();
46
47        void captureEvents();
48        void releaseEvents();
49
50        readonly attribute long width;
51        readonly attribute long height;
52                 attribute [ConvertNullToNullString] DOMString dir;
53                 attribute [ConvertNullToNullString] DOMString designMode;
54        readonly attribute DOMString compatMode;
55
56        readonly attribute Element activeElement;
57        boolean hasFocus();
58
59        // Deprecated attributes
60                 attribute [ConvertNullToNullString] DOMString bgColor;
61                 attribute [ConvertNullToNullString] DOMString fgColor;
62                 attribute [ConvertNullToNullString] DOMString alinkColor;
63                 attribute [ConvertNullToNullString] DOMString linkColor;
64                 attribute [ConvertNullToNullString] DOMString vlinkColor;
65    };
66
67}
68