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 SpecialWrapFor=HTMLElement|SVGElement | 22 SpecialWrapFor=HTMLElement|SVGElement |
23 ] interface Element : Node { | 23 ] interface Element : Node { |
| 24 //attribute DOMString testAttrOnElement; |
| 25 //[ExposeV8GetterAndSetter] attribute DOMString testAttrOnElementWithGetterAnd
Setter; |
24 | 26 |
25 // DOM Level 1 Core | 27 // DOM Level 1 Core |
26 | 28 |
27 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr
ing tagName; | 29 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr
ing tagName; |
28 | 30 |
29 [TreatReturnedNullStringAs=Null] DOMString getAttribute([Default=Undefined]
optional DOMString name); | 31 [TreatReturnedNullStringAs=Null] DOMString getAttribute([Default=Undefined]
optional DOMString name); |
30 [RaisesException, CustomElementCallbacks] void setAttribute([Default=Undefin
ed] optional DOMString name, [Default=Undefined] optional DOMString value); | 32 [RaisesException, CustomElementCallbacks] void setAttribute([Default=Undefin
ed] optional DOMString name, [Default=Undefined] optional DOMString value); |
31 [CustomElementCallbacks] void removeAttribute([Default=Undefined] optional D
OMString name); | 33 [CustomElementCallbacks] void removeAttribute([Default=Undefined] optional D
OMString name); |
32 [MeasureAs=ElementGetAttributeNode] Attr getAttributeNode([Default=Undefined
] optional DOMString name); // Removed from DOM4. | 34 [MeasureAs=ElementGetAttributeNode] Attr getAttributeNode([Default=Undefined
] optional DOMString name); // Removed from DOM4. |
33 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNode]
Attr setAttributeNode([Default=Undefined, StrictTypeChecking] optional Attr new
Attr); // Removed from DOM4. | 35 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNode]
Attr setAttributeNode([Default=Undefined, StrictTypeChecking] optional Attr new
Attr); // Removed from DOM4. |
(...skipping 18 matching lines...) Expand all Loading... |
52 [RaisesException, CustomElementCallbacks] Attr setAttributeNodeNS([Default=U
ndefined, StrictTypeChecking] optional Attr newAttr); | 54 [RaisesException, CustomElementCallbacks] Attr setAttributeNodeNS([Default=U
ndefined, StrictTypeChecking] optional Attr newAttr); |
53 boolean hasAttribute(DOMString name); | 55 boolean hasAttribute(DOMString name); |
54 boolean hasAttributeNS([TreatNullAs=NullString,Default=Undefined] optional D
OMString namespaceURI, | 56 boolean hasAttributeNS([TreatNullAs=NullString,Default=Undefined] optional D
OMString namespaceURI, |
55 [Default=Undefined] optional DOMString localName); | 57 [Default=Undefined] optional DOMString localName); |
56 | 58 |
57 [PerWorldBindings] readonly attribute CSSStyleDeclaration style; | 59 [PerWorldBindings] readonly attribute CSSStyleDeclaration style; |
58 | 60 |
59 // DOM4 | 61 // DOM4 |
60 // iht.com relies on id returning the empty string when no id is present. | 62 // iht.com relies on id returning the empty string when no id is present. |
61 // Other browsers do this as well. So we don't convert null to JS null. | 63 // Other browsers do this as well. So we don't convert null to JS null. |
62 [Reflect, TreatNullAs=NullString] attribute DOMString id; | 64 [Reflect, TreatNullAs=NullString, ExposeV8GetterAndSetter] attribute DOMStri
ng id; |
63 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr
ing namespaceURI; | 65 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr
ing namespaceURI; |
64 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, PerWorldBindings, S
etterRaisesException] attribute DOMString prefix; | 66 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, PerWorldBindings, S
etterRaisesException] attribute DOMString prefix; |
65 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr
ing localName; | 67 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr
ing localName; |
66 | 68 |
67 // Common extensions | 69 // Common extensions |
68 | 70 |
69 [PerWorldBindings] readonly attribute long offsetLeft; | 71 [PerWorldBindings] readonly attribute long offsetLeft; |
70 [PerWorldBindings] readonly attribute long offsetTop; | 72 [PerWorldBindings] readonly attribute long offsetTop; |
71 [PerWorldBindings] readonly attribute long offsetWidth; | 73 [PerWorldBindings] readonly attribute long offsetWidth; |
72 [PerWorldBindings] readonly attribute long offsetHeight; | 74 [PerWorldBindings] readonly attribute long offsetHeight; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; | 148 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; |
147 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; | 149 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; |
148 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; | 150 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; |
149 attribute EventHandler onwebkitfullscreenchange; | 151 attribute EventHandler onwebkitfullscreenchange; |
150 attribute EventHandler onwebkitfullscreenerror; | 152 attribute EventHandler onwebkitfullscreenerror; |
151 [ActivityLogging=SetterForAllWorlds] attribute EventHandler onwheel; | 153 [ActivityLogging=SetterForAllWorlds] attribute EventHandler onwheel; |
152 }; | 154 }; |
153 | 155 |
154 Element implements ParentNode; | 156 Element implements ParentNode; |
155 Element implements ChildNode; | 157 Element implements ChildNode; |
OLD | NEW |