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