• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2006, 2007, 2009 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        GenerateNativeConverter,
26        CustomPushEventHandlerScope,
27        InterfaceUUID=b2f172f1-d209-446f-8143-5f21de678f95,
28        ImplementationUUID=c81b0e16-a2b9-448b-ad0a-81c9346d6f8a
29    ] HTMLElement : Element {
30                 // iht.com relies on id returning the empty string when no id is present.
31                 // Other browsers do this as well. So we don't convert null to JS null.
32                 attribute [ConvertNullToNullString, Reflect] DOMString id;
33                 attribute [ConvertNullToNullString, Reflect] DOMString title;
34                 attribute [ConvertNullToNullString, Reflect] DOMString lang;
35                 attribute [ConvertNullToNullString, Reflect] DOMString dir;
36                 attribute [ConvertNullToNullString, Reflect=class] DOMString className;
37
38                 attribute long            tabIndex;
39                 attribute boolean         draggable;
40
41        // Extensions
42                 attribute [ConvertNullToNullString] DOMString innerHTML
43                     setter raises(DOMException);
44                 attribute [ConvertNullToNullString] DOMString innerText
45                     setter raises(DOMException);
46                 attribute [ConvertNullToNullString] DOMString outerHTML
47                     setter raises(DOMException);
48                 attribute [ConvertNullToNullString] DOMString outerText
49                     setter raises(DOMException);
50
51        Element insertAdjacentElement(in DOMString where,
52                                      in Element element)
53            raises(DOMException);
54        void insertAdjacentHTML(in DOMString where,
55                                in DOMString html)
56            raises(DOMException);
57        void insertAdjacentText(in DOMString where,
58                                in DOMString text)
59            raises(DOMException);
60
61        readonly attribute HTMLCollection children;
62
63                 attribute [ConvertNullToNullString] DOMString contentEditable;
64        readonly attribute boolean isContentEditable;
65
66#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
67        readonly attribute DOMString titleDisplayString;
68#endif
69    };
70
71}
72