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 [Reflect] attribute DOMString title; | 24 [Reflect, TreatNullAs=NullString] attribute DOMString title; |
25 [Reflect] attribute DOMString lang; | 25 [Reflect, TreatNullAs=NullString] attribute DOMString lang; |
26 attribute boolean translate; | 26 attribute boolean translate; |
27 [Reflect] attribute DOMString dir; | 27 [Reflect, TreatNullAs=NullString] attribute DOMString dir; |
28 | 28 |
29 [CustomElementCallbacks=Enable] attribute long tabInde
x; | 29 [CustomElementCallbacks] attribute long tabIndex; |
30 [CustomElementCallbacks=Enable] attribute boolean draggab
le; | 30 [CustomElementCallbacks] attribute boolean draggable; |
31 [Reflect] attribute DOMString webkitdropzone; | 31 [Reflect, TreatNullAs=NullString] attribute DOMString webkitdropzone; |
32 [Reflect] attribute boolean hidden; | 32 [Reflect] attribute boolean hidden; |
33 [Reflect] attribute DOMString accessKey; | 33 [Reflect, TreatNullAs=NullString] attribute DOMString accessKey; |
34 | 34 |
35 // Extensions | 35 // Extensions |
36 [TreatNullAs=NullString, CustomElementCallbacks=Enable, PerWorldBin
dings, ActivityLog=SetterForIsolatedWorlds, SetterRaisesException] attribute DOM
String innerHTML; | 36 [TreatNullAs=NullString, CustomElementCallbacks, SetterRaisesException] attr
ibute DOMString innerText; |
37 [TreatNullAs=NullString, CustomElementCallbacks=Enable, SetterRaise
sException] attribute DOMString innerText; | 37 [TreatNullAs=NullString, CustomElementCallbacks, SetterRaisesException] attr
ibute DOMString outerText; |
38 [TreatNullAs=NullString, CustomElementCallbacks=Enable, SetterRaise
sException] attribute DOMString outerHTML; | |
39 [TreatNullAs=NullString, CustomElementCallbacks=Enable, SetterRaise
sException] attribute DOMString outerText; | |
40 | 38 |
41 [RaisesException, CustomElementCallbacks=Enable, MeasureAs=InsertAdjacentEle
ment] Element insertAdjacentElement([Default=Undefined] optional DOMString where
, | 39 [RaisesException, CustomElementCallbacks, MeasureAs=InsertAdjacentElement] E
lement insertAdjacentElement([Default=Undefined] optional DOMString where, |
42 [Default=Undefined] optional Element element); | 40 [Default=Undefined] optional Element element); |
43 [CustomElementCallbacks=Enable, RaisesException] void insertAdjacentHTML([De
fault=Undefined] optional DOMString where, | 41 [CustomElementCallbacks, RaisesException] void insertAdjacentHTML([Default=U
ndefined] optional DOMString where, |
44 [Default=Undefined] optional DOMString html); | 42 [Default=Undefined] optional DOMString html); |
45 [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText([Def
ault=Undefined] optional DOMString where, | 43 [RaisesException, MeasureAs=InsertAdjacentText] void insertAdjacentText([Def
ault=Undefined] optional DOMString where, |
46 [Default=Undefined] optional DOMString text); | 44 [Default=Undefined] optional DOMString text); |
47 | 45 |
48 [EnabledAtRuntime=IMEAPI] readonly attribute InputMethodContext inputMethodC
ontext; | 46 [RuntimeEnabled=IMEAPI] readonly attribute InputMethodContext inputMethodCon
text; |
49 | 47 |
50 [TreatNullAs=NullString, CustomElementCallbacks=Enable, SetterRaisesExceptio
n] attribute DOMString contentEditable; | 48 [TreatNullAs=NullString, CustomElementCallbacks, SetterRaisesException] attr
ibute DOMString contentEditable; |
51 readonly attribute boolean isContentEditable; | 49 readonly attribute boolean isContentEditable; |
52 | 50 |
53 attribute boolean spellcheck; | 51 attribute boolean spellcheck; |
54 | 52 |
55 void click(); | 53 void click(); |
56 }; | 54 }; |
57 | 55 |
| 56 HTMLElement implements GlobalEventHandlers; |
OLD | NEW |