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, |
(...skipping 12 matching lines...) Expand all Loading... |
23 ] interface Element : Node { | 23 ] interface Element : Node { |
24 | 24 |
25 // DOM Level 1 Core | 25 // DOM Level 1 Core |
26 | 26 |
27 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr
ing tagName; | 27 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr
ing tagName; |
28 | 28 |
29 [TreatReturnedNullStringAs=Null] DOMString getAttribute([Default=Undefined]
optional DOMString name); | 29 [TreatReturnedNullStringAs=Null] DOMString getAttribute([Default=Undefined]
optional DOMString name); |
30 [RaisesException, CustomElementCallbacks=Enable] void setAttribute([Default=
Undefined] optional DOMString name, | 30 [RaisesException, CustomElementCallbacks=Enable] void setAttribute([Default=
Undefined] optional DOMString name, |
31 [Default=Undefined] optional DOMString valu
e); | 31 [Default=Undefined] optional DOMString valu
e); |
32 [CustomElementCallbacks=Enable] void removeAttribute([Default=Undefined] opt
ional DOMString name); | 32 [CustomElementCallbacks=Enable] void removeAttribute([Default=Undefined] opt
ional DOMString name); |
33 Attr getAttributeNode([Default=Undefined] optional DOMString name); | 33 [MeasureAs=ElementGetAttributeNode] Attr getAttributeNode([Default=Undefined
] optional DOMString name); // Removed from DOM4. |
34 [RaisesException, CustomElementCallbacks=Enable] Attr setAttributeNode([Defa
ult=Undefined, StrictTypeChecking] optional Attr newAttr); | 34 [RaisesException, CustomElementCallbacks=Enable, MeasureAs=ElementSetAttribu
teNode] Attr setAttributeNode([Default=Undefined, StrictTypeChecking] optional A
ttr newAttr); // Removed from DOM4. |
35 [RaisesException, CustomElementCallbacks=Enable] Attr removeAttributeNode([D
efault=Undefined, StrictTypeChecking] optional Attr oldAttr); | 35 [RaisesException, CustomElementCallbacks=Enable, MeasureAs=ElementRemoveAttr
ibuteNode] Attr removeAttributeNode([Default=Undefined, StrictTypeChecking] opti
onal Attr oldAttr); // Removed from DOM4. |
36 [PerWorldBindings] NodeList getElementsByTagName([Default=Undefined] optiona
l DOMString name); | 36 [PerWorldBindings] NodeList getElementsByTagName([Default=Undefined] optiona
l DOMString name); |
37 | 37 |
38 // For ObjC this is defined on Node for legacy support. | |
39 [PerWorldBindings] readonly attribute NamedNodeMap attributes; | 38 [PerWorldBindings] readonly attribute NamedNodeMap attributes; |
40 boolean hasAttributes(); | 39 boolean hasAttributes(); |
41 | 40 |
42 // DOM Level 2 Core | 41 // DOM Level 2 Core |
43 | 42 |
44 DOMString getAttributeNS([TreatNullAs=NullString,Default=Undefined] optiona
l DOMString namespaceURI, | 43 DOMString getAttributeNS([TreatNullAs=NullString,Default=Undefined] optiona
l DOMString namespaceURI, |
45 [Default=Undefined] optional DOMStri
ng localName); | 44 [Default=Undefined] optional DOMStri
ng localName); |
46 [RaisesException, CustomElementCallbacks=Enable] void setAttributeNS([Treat
NullAs=NullString,Default=Undefined] optional DOMString namespaceURI, | 45 [RaisesException, CustomElementCallbacks=Enable] void setAttributeNS([Treat
NullAs=NullString,Default=Undefined] optional DOMString namespaceURI, |
47 [Default=Undefined] optional DOMString qu
alifiedName, | 46 [Default=Undefined] optional DOMString qu
alifiedName, |
48 [Default=Undefined] optional DOMString va
lue); | 47 [Default=Undefined] optional DOMString va
lue); |
49 [CustomElementCallbacks=Enable] void removeAttributeNS([TreatNullAs=NullStr
ing] DOMString namespaceURI, | 48 [CustomElementCallbacks=Enable] void removeAttributeNS([TreatNullAs=NullStr
ing] DOMString namespaceURI, |
50 DOMString localName); | 49 DOMString localName); |
51 NodeList getElementsByTagNameNS([TreatNullAs=NullString,Default=Undefined]
optional DOMString namespaceURI, | 50 NodeList getElementsByTagNameNS([TreatNullAs=NullString,Default=Undefined]
optional DOMString namespaceURI, |
52 [Default=Undefined] optional
DOMString localName); | 51 [Default=Undefined] optional
DOMString localName); |
53 Attr getAttributeNodeNS([TreatNullAs=NullString,Default=Undefined] optional
DOMString namespaceURI, | 52 [MeasureAs=ElementGetAttributeNodeNS] Attr getAttributeNodeNS([TreatNullAs=
NullString,Default=Undefined] optional DOMString namespaceURI, |
54 [Default=Undefined] optional DOMStrin
g localName); | 53 [Default=Unde
fined] optional DOMString localName); // Removed from DOM4. |
55 [RaisesException, CustomElementCallbacks=Enable] Attr setAttributeNodeNS([De
fault=Undefined, StrictTypeChecking] optional Attr newAttr); | 54 [RaisesException, CustomElementCallbacks=Enable] Attr setAttributeNodeNS([De
fault=Undefined, StrictTypeChecking] optional Attr newAttr); |
56 boolean hasAttribute(DOMString name); | 55 boolean hasAttribute(DOMString name); |
57 boolean hasAttributeNS([TreatNullAs=NullString,Default=Undefined] optional
DOMString namespaceURI, | 56 boolean hasAttributeNS([TreatNullAs=NullString,Default=Undefined] optional
DOMString namespaceURI, |
58 [Default=Undefined] optional DOMString
localName); | 57 [Default=Undefined] optional DOMString
localName); |
59 | 58 |
60 [PerWorldBindings] readonly attribute CSSStyleDeclaration style; | 59 [PerWorldBindings] readonly attribute CSSStyleDeclaration style; |
61 | 60 |
62 // DOM4 | 61 // DOM4 |
63 // 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. |
64 // 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. |
65 [Reflect] attribute DOMString id; | 64 [Reflect] attribute DOMString id; |
| 65 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr
ing namespaceURI; |
| 66 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, PerWorldBindings, S
etterRaisesException] attribute DOMString prefix; |
| 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; |
73 [ImplementedAs=bindingsOffsetParent, PerWorldBindings] readonly attribute El
ement offsetParent; | 75 [ImplementedAs=bindingsOffsetParent, PerWorldBindings] readonly attribute El
ement offsetParent; |
74 [PerWorldBindings] readonly attribute long clientLeft; | 76 [PerWorldBindings] readonly attribute long clientLeft; |
75 [PerWorldBindings] readonly attribute long clientTop; | 77 [PerWorldBindings] readonly attribute long clientTop; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventHandler onkeypress; | 157 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventHandler onkeypress; |
156 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventHandler onkeyup; | 158 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventHandler onkeyup; |
157 [NotEnumerable, PerWorldBindings] attribute EventHandler onload; | 159 [NotEnumerable, PerWorldBindings] attribute EventHandler onload; |
158 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventHandler onmousedown; | 160 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventHandler onmousedown; |
159 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventHandler onmouseenter; | 161 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventHandler onmouseenter; |
160 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventHandler onmouseleave; | 162 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventHandler onmouseleave; |
161 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventHandler onmousemove; | 163 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventHandler onmousemove; |
162 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventHandler onmouseout; | 164 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventHandler onmouseout; |
163 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventHandler onmouseover; | 165 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventHandler onmouseover; |
164 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventHandler onmouseup; | 166 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventHandler onmouseup; |
165 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventHandler onmousewheel; | 167 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventHandler onmousewheel; // Deprecated in favor of onwheel. |
| 168 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventHandler onwheel; |
166 [NotEnumerable, PerWorldBindings] attribute EventHandler onscroll; | 169 [NotEnumerable, PerWorldBindings] attribute EventHandler onscroll; |
167 [NotEnumerable, PerWorldBindings] attribute EventHandler onselect; | 170 [NotEnumerable, PerWorldBindings] attribute EventHandler onselect; |
168 [NotEnumerable, PerWorldBindings] attribute EventHandler onsubmit; | 171 [NotEnumerable, PerWorldBindings] attribute EventHandler onsubmit; |
169 | 172 |
170 // attribute [NotEnumerable] EventHandler oncanplay; | 173 // attribute [NotEnumerable] EventHandler oncanplay; |
171 // attribute [NotEnumerable] EventHandler oncanplaythrough; | 174 // attribute [NotEnumerable] EventHandler oncanplaythrough; |
172 // attribute [NotEnumerable] EventHandler ondurationchange; | 175 // attribute [NotEnumerable] EventHandler ondurationchange; |
173 // attribute [NotEnumerable] EventHandler onemptied; | 176 // attribute [NotEnumerable] EventHandler onemptied; |
174 // attribute [NotEnumerable] EventHandler onended; | 177 // attribute [NotEnumerable] EventHandler onended; |
175 // attribute [NotEnumerable] EventHandler onloadeddata; | 178 // attribute [NotEnumerable] EventHandler onloadeddata; |
(...skipping 27 matching lines...) Expand all Loading... |
203 [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventHan
dler ontouchstart; | 206 [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventHan
dler ontouchstart; |
204 [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventHan
dler ontouchmove; | 207 [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventHan
dler ontouchmove; |
205 [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventHan
dler ontouchend; | 208 [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventHan
dler ontouchend; |
206 [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventHan
dler ontouchcancel; | 209 [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventHan
dler ontouchcancel; |
207 [NotEnumerable, PerWorldBindings] attribute EventHandler onwebkitfullscreenc
hange; | 210 [NotEnumerable, PerWorldBindings] attribute EventHandler onwebkitfullscreenc
hange; |
208 [NotEnumerable, PerWorldBindings] attribute EventHandler onwebkitfullscreene
rror; | 211 [NotEnumerable, PerWorldBindings] attribute EventHandler onwebkitfullscreene
rror; |
209 }; | 212 }; |
210 | 213 |
211 Element implements ParentNode; | 214 Element implements ParentNode; |
212 Element implements ChildNode; | 215 Element implements ChildNode; |
OLD | NEW |