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. | 38 // For ObjC this is defined on Node for legacy support. |
39 [PerWorldBindings] readonly attribute NamedNodeMap attributes; | 39 [PerWorldBindings] readonly attribute NamedNodeMap attributes; |
40 boolean hasAttributes(); | 40 boolean hasAttributes(); |
41 | 41 |
42 // DOM Level 2 Core | 42 // DOM Level 2 Core |
43 | 43 |
44 DOMString getAttributeNS([TreatNullAs=NullString,Default=Undefined] optiona
l DOMString namespaceURI, | 44 DOMString getAttributeNS([TreatNullAs=NullString,Default=Undefined] optiona
l DOMString namespaceURI, |
45 [Default=Undefined] optional DOMStri
ng localName); | 45 [Default=Undefined] optional DOMStri
ng localName); |
46 [RaisesException, CustomElementCallbacks=Enable] void setAttributeNS([Treat
NullAs=NullString,Default=Undefined] optional DOMString namespaceURI, | 46 [RaisesException, CustomElementCallbacks=Enable] void setAttributeNS([Treat
NullAs=NullString,Default=Undefined] optional DOMString namespaceURI, |
47 [Default=Undefined] optional DOMString qu
alifiedName, | 47 [Default=Undefined] optional DOMString qu
alifiedName, |
48 [Default=Undefined] optional DOMString va
lue); | 48 [Default=Undefined] optional DOMString va
lue); |
49 [CustomElementCallbacks=Enable] void removeAttributeNS([TreatNullAs=NullStr
ing] DOMString namespaceURI, | 49 [CustomElementCallbacks=Enable] void removeAttributeNS([TreatNullAs=NullStr
ing] DOMString namespaceURI, |
50 DOMString localName); | 50 DOMString localName); |
51 NodeList getElementsByTagNameNS([TreatNullAs=NullString,Default=Undefined]
optional DOMString namespaceURI, | 51 NodeList getElementsByTagNameNS([TreatNullAs=NullString,Default=Undefined]
optional DOMString namespaceURI, |
52 [Default=Undefined] optional
DOMString localName); | 52 [Default=Undefined] optional
DOMString localName); |
53 Attr getAttributeNodeNS([TreatNullAs=NullString,Default=Undefined] optional
DOMString namespaceURI, | 53 [MeasureAs=ElementGetAttributeNodeNS] Attr getAttributeNodeNS([TreatNullAs=
NullString,Default=Undefined] optional DOMString namespaceURI, |
54 [Default=Undefined] optional DOMStrin
g localName); | 54 [Default=Unde
fined] optional DOMString localName); // Removed from DOM4. |
55 [RaisesException, CustomElementCallbacks=Enable] Attr setAttributeNodeNS([De
fault=Undefined, StrictTypeChecking] optional Attr newAttr); | 55 [RaisesException, CustomElementCallbacks=Enable] Attr setAttributeNodeNS([De
fault=Undefined, StrictTypeChecking] optional Attr newAttr); |
56 boolean hasAttribute(DOMString name); | 56 boolean hasAttribute(DOMString name); |
57 boolean hasAttributeNS([TreatNullAs=NullString,Default=Undefined] optional
DOMString namespaceURI, | 57 boolean hasAttributeNS([TreatNullAs=NullString,Default=Undefined] optional
DOMString namespaceURI, |
58 [Default=Undefined] optional DOMString
localName); | 58 [Default=Undefined] optional DOMString
localName); |
59 | 59 |
60 [PerWorldBindings] readonly attribute CSSStyleDeclaration style; | 60 [PerWorldBindings] readonly attribute CSSStyleDeclaration style; |
61 | 61 |
62 // DOM4 | 62 // DOM4 |
63 // iht.com relies on id returning the empty string when no id is present. | 63 // 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. | 64 // Other browsers do this as well. So we don't convert null to JS null. |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventHan
dler ontouchstart; | 203 [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventHan
dler ontouchstart; |
204 [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventHan
dler ontouchmove; | 204 [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventHan
dler ontouchmove; |
205 [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventHan
dler ontouchend; | 205 [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventHan
dler ontouchend; |
206 [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventHan
dler ontouchcancel; | 206 [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventHan
dler ontouchcancel; |
207 [NotEnumerable, PerWorldBindings] attribute EventHandler onwebkitfullscreenc
hange; | 207 [NotEnumerable, PerWorldBindings] attribute EventHandler onwebkitfullscreenc
hange; |
208 [NotEnumerable, PerWorldBindings] attribute EventHandler onwebkitfullscreene
rror; | 208 [NotEnumerable, PerWorldBindings] attribute EventHandler onwebkitfullscreene
rror; |
209 }; | 209 }; |
210 | 210 |
211 Element implements ParentNode; | 211 Element implements ParentNode; |
212 Element implements ChildNode; | 212 Element implements ChildNode; |
OLD | NEW |