• 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        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 [ConvertNullToNullString, Reflect] DOMString id;
30                 attribute [ConvertNullToNullString, Reflect] DOMString title;
31                 attribute [ConvertNullToNullString, Reflect] DOMString lang;
32                 attribute [ConvertNullToNullString, Reflect] DOMString dir;
33                 attribute [ConvertNullToNullString, Reflect=class] DOMString className;
34
35                 attribute long            tabIndex;
36                 attribute boolean         draggable;
37
38        // Extensions
39                 attribute [ConvertNullToNullString] DOMString innerHTML
40                     setter raises(DOMException);
41                 attribute [ConvertNullToNullString] DOMString innerText
42                     setter raises(DOMException);
43                 attribute [ConvertNullToNullString] DOMString outerHTML
44                     setter raises(DOMException);
45                 attribute [ConvertNullToNullString] DOMString outerText
46                     setter raises(DOMException);
47
48        Element insertAdjacentElement(in DOMString where,
49                                      in Element element)
50            raises(DOMException);
51        void insertAdjacentHTML(in DOMString where,
52                                in DOMString html)
53            raises(DOMException);
54        void insertAdjacentText(in DOMString where,
55                                in DOMString text)
56            raises(DOMException);
57
58        readonly attribute HTMLCollection children;
59
60                 attribute [ConvertNullToNullString] DOMString contentEditable;
61        readonly attribute boolean isContentEditable;
62
63#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
64        readonly attribute DOMString titleDisplayString;
65#endif
66    };
67
68}
69