OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 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 | 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, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 */ | 19 */ |
20 | 20 |
21 [ | 21 [ |
22 CustomToV8 | 22 CustomToV8 |
23 ] interface HTMLElement : Element { | 23 ] interface HTMLElement : Element { |
24 // iht.com relies on id returning the empty string when no id is pr
esent. | |
25 // Other browsers do this as well. So we don't convert null to JS n
ull. | |
26 [Reflect] attribute DOMString id; | |
27 [Reflect] attribute DOMString title; | 24 [Reflect] attribute DOMString title; |
28 [Reflect] attribute DOMString lang; | 25 [Reflect] attribute DOMString lang; |
29 attribute boolean translate; | 26 attribute boolean translate; |
30 [Reflect] attribute DOMString dir; | 27 [Reflect] attribute DOMString dir; |
31 | 28 |
32 attribute long tabIndex; | 29 [CustomElementCallbacks=Enable] attribute long tabInde
x; |
33 attribute boolean draggable; | 30 [CustomElementCallbacks=Enable] attribute boolean draggab
le; |
34 [Reflect] attribute DOMString webkitdropzone; | 31 [Reflect] attribute DOMString webkitdropzone; |
35 [Reflect] attribute boolean hidden; | 32 [Reflect] attribute boolean hidden; |
36 [Reflect] attribute DOMString accessKey; | 33 [Reflect] attribute DOMString accessKey; |
37 | 34 |
38 // Extensions | 35 // Extensions |
39 [TreatNullAs=NullString, DeliverCustomElementCallbacks, PerWorldBin
dings, ActivityLog=SetterForIsolatedWorlds, SetterRaisesException] attribute DOM
String innerHTML; | 36 [TreatNullAs=NullString, CustomElementCallbacks=Enable, PerWorldBin
dings, ActivityLog=SetterForIsolatedWorlds, SetterRaisesException] attribute DOM
String innerHTML; |
40 [TreatNullAs=NullString, SetterRaisesException] attribute DOMString
innerText; | 37 [TreatNullAs=NullString, CustomElementCallbacks=Enable, SetterRaise
sException] attribute DOMString innerText; |
41 [TreatNullAs=NullString, DeliverCustomElementCallbacks, SetterRaise
sException] attribute DOMString outerHTML; | 38 [TreatNullAs=NullString, CustomElementCallbacks=Enable, SetterRaise
sException] attribute DOMString outerHTML; |
42 [TreatNullAs=NullString, SetterRaisesException] attribute DOMString
outerText; | 39 [TreatNullAs=NullString, CustomElementCallbacks=Enable, SetterRaise
sException] attribute DOMString outerText; |
43 | 40 |
44 [RaisesException] Element insertAdjacentElement([Default=Undefined] optional
DOMString where, | 41 [RaisesException, CustomElementCallbacks=Enable] Element insertAdjacentEleme
nt([Default=Undefined] optional DOMString where, |
45 [Default=Undefined] optional Element element); | 42 [Default=Undefined] optional Element element); |
46 [DeliverCustomElementCallbacks, RaisesException] void insertAdjacentHTML([De
fault=Undefined] optional DOMString where, | 43 [CustomElementCallbacks=Enable, RaisesException] void insertAdjacentHTML([De
fault=Undefined] optional DOMString where, |
47 [Default=Undefined] optional DOMString html); | 44 [Default=Undefined] optional DOMString html); |
48 [RaisesException] void insertAdjacentText([Default=Undefined] optional DOMSt
ring where, | 45 [RaisesException] void insertAdjacentText([Default=Undefined] optional DOMSt
ring where, |
49 [Default=Undefined] optional DOMString text); | 46 [Default=Undefined] optional DOMString text); |
50 | 47 |
51 [EnabledAtRuntime=imeAPI] InputMethodContext getInputContext(); | 48 [EnabledAtRuntime=imeAPI] readonly attribute InputMethodContext inputMethodC
ontext; |
52 | 49 |
53 [TreatNullAs=NullString, SetterRaisesException] attribute DOMString
contentEditable; | 50 [TreatNullAs=NullString, CustomElementCallbacks=Enable, SetterRaisesExceptio
n] attribute DOMString contentEditable; |
54 readonly attribute boolean isContentEditable; | 51 readonly attribute boolean isContentEditable; |
55 | 52 |
56 attribute boolean spellcheck; | 53 attribute boolean spellcheck; |
57 | 54 |
58 void click(); | 55 void click(); |
59 }; | 56 }; |
60 | 57 |
OLD | NEW |