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        GenerateNativeConverter,
25        CustomPushEventHandlerScope
26    ] HTMLElement : Element {
27                 // iht.com relies on id returning the empty string when no id is present.
28                 // Other browsers do this as well. So we don't convert null to JS null.
29                 attribute [Reflect] DOMString id;
30                 attribute [Reflect] DOMString title;
31                 attribute [Reflect] DOMString lang;
32                 attribute [Reflect] DOMString dir;
33                 attribute [Reflect=class] DOMString className;
34                 readonly attribute DOMTokenList classList;
35
36                 attribute long              tabIndex;
37                 attribute boolean           draggable;
38                 attribute [Reflect] boolean hidden;
39
40        // Extensions
41                 attribute [ConvertNullToNullString] DOMString innerHTML
42                     setter raises(DOMException);
43                 attribute [ConvertNullToNullString] DOMString innerText
44                     setter raises(DOMException);
45                 attribute [ConvertNullToNullString] DOMString outerHTML
46                     setter raises(DOMException);
47                 attribute [ConvertNullToNullString] DOMString outerText
48                     setter raises(DOMException);
49
50        Element insertAdjacentElement(in DOMString where,
51                                      in Element element)
52            raises(DOMException);
53        void insertAdjacentHTML(in DOMString where,
54                                in DOMString html)
55            raises(DOMException);
56        void insertAdjacentText(in DOMString where,
57                                in DOMString text)
58            raises(DOMException);
59
60        readonly attribute HTMLCollection children;
61
62                 attribute [ConvertNullToNullString] DOMString contentEditable
63                     setter raises(DOMException);
64        readonly attribute boolean isContentEditable;
65
66                 attribute boolean spellcheck;
67
68#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
69        readonly attribute DOMString titleDisplayString;
70#endif
71    };
72
73}
74