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
21[
22    JSGenerateToNativeObject,
23    JSCustomPushEventHandlerScope,
24] interface HTMLElement : Element {
25#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
26             // FIXME: id should be moved to Element for ObjC as well.
27             [Reflect] attribute DOMString id;
28#endif
29             [Reflect] attribute DOMString title;
30             [Reflect] attribute DOMString lang;
31             attribute boolean             translate;
32             [Reflect] attribute DOMString dir;
33
34             attribute long              tabIndex;
35             attribute boolean           draggable;
36             [Reflect] attribute DOMString webkitdropzone;
37             [Reflect] attribute boolean hidden;
38             [Reflect] attribute DOMString accessKey;
39
40    // Extensions
41             [TreatNullAs=NullString, SetterRaisesException] attribute DOMString innerHTML;
42             [TreatNullAs=NullString, SetterRaisesException] attribute DOMString innerText;
43             [TreatNullAs=NullString, SetterRaisesException] attribute DOMString outerHTML;
44             [TreatNullAs=NullString, SetterRaisesException] attribute DOMString outerText;
45
46    [RaisesException] Element insertAdjacentElement([Default=Undefined] optional DOMString where,
47                                  [Default=Undefined] optional Element element);
48    [RaisesException] void insertAdjacentHTML([Default=Undefined] optional DOMString where,
49                            [Default=Undefined] optional DOMString html);
50    [RaisesException] void insertAdjacentText([Default=Undefined] optional DOMString where,
51                            [Default=Undefined] optional DOMString text);
52
53    readonly attribute HTMLCollection children;
54
55             [TreatNullAs=NullString, SetterRaisesException] attribute DOMString contentEditable;
56    readonly attribute boolean isContentEditable;
57
58             attribute boolean spellcheck;
59
60#if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
61    readonly attribute DOMString titleDisplayString;
62#endif
63
64    void click();
65};
66
67