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 | 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(DOMString name); | 29 [TreatReturnedNullStringAs=Null, DartNoAutoScope] DOMString getAttribute(DOM
String name); |
30 [RaisesException, CustomElementCallbacks] void setAttribute(DOMString name,
DOMString value); | 30 [RaisesException, CustomElementCallbacks, DartNoAutoScope] void setAttribute
(DOMString name, DOMString value); |
31 [CustomElementCallbacks] void removeAttribute(DOMString name); | 31 [CustomElementCallbacks] void removeAttribute(DOMString name); |
32 [MeasureAs=ElementGetAttributeNode] Attr getAttributeNode([Default=Undefined
] optional DOMString name); // Removed from DOM4. | 32 [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. | 33 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNode]
Attr setAttributeNode([Default=Undefined, StrictTypeChecking] optional Attr new
Attr); // Removed from DOM4. |
34 [RaisesException, CustomElementCallbacks, MeasureAs=ElementRemoveAttributeNo
de] Attr removeAttributeNode([Default=Undefined, StrictTypeChecking] optional At
tr oldAttr); // Removed from DOM4. | 34 [RaisesException, CustomElementCallbacks, MeasureAs=ElementRemoveAttributeNo
de] Attr removeAttributeNode([Default=Undefined, StrictTypeChecking] optional At
tr oldAttr); // Removed from DOM4. |
35 [PerWorldBindings] HTMLCollection getElementsByTagName(DOMString name); | 35 [PerWorldBindings] HTMLCollection getElementsByTagName(DOMString name); |
36 | 36 |
37 [PerWorldBindings] readonly attribute NamedNodeMap attributes; | 37 [PerWorldBindings] readonly attribute NamedNodeMap attributes; |
38 [MeasureAs=HasAttributes] boolean hasAttributes(); | 38 [MeasureAs=HasAttributes] boolean hasAttributes(); |
39 | 39 |
40 // DOM Level 2 Core | 40 // DOM Level 2 Core |
41 | 41 |
42 DOMString getAttributeNS([TreatNullAs=NullString] DOMString namespaceURI, DO
MString localName); | 42 [DartNoAutoScope] DOMString getAttributeNS([TreatNullAs=NullString] DOMStrin
g namespaceURI, DOMString localName); |
43 [RaisesException, CustomElementCallbacks] void setAttributeNS([TreatNullAs=N
ullString] DOMString namespaceURI, DOMString qualifiedName, DOMString value); | 43 [RaisesException, CustomElementCallbacks, DartNoAutoScope] void setAttribute
NS([TreatNullAs=NullString] DOMString namespaceURI, DOMString qualifiedName, DOM
String value); |
44 [CustomElementCallbacks] void removeAttributeNS([TreatNullAs=NullString] DOM
String namespaceURI, DOMString localName); | 44 [CustomElementCallbacks] void removeAttributeNS([TreatNullAs=NullString] DOM
String namespaceURI, DOMString localName); |
45 HTMLCollection getElementsByTagNameNS([TreatNullAs=NullString] DOMString nam
espaceURI, DOMString localName); | 45 HTMLCollection getElementsByTagNameNS([TreatNullAs=NullString] DOMString nam
espaceURI, DOMString localName); |
46 [MeasureAs=ElementGetAttributeNodeNS] Attr getAttributeNodeNS([TreatNullAs=N
ullString,Default=Undefined] optional DOMString namespaceURI, | 46 [MeasureAs=ElementGetAttributeNodeNS] Attr getAttributeNodeNS([TreatNullAs=N
ullString,Default=Undefined] optional DOMString namespaceURI, |
47 [Default=Undef
ined] optional DOMString localName); // Removed from DOM4. | 47 [Default=Undef
ined] optional DOMString localName); // Removed from DOM4. |
48 boolean hasAttribute(DOMString name); | 48 boolean hasAttribute(DOMString name); |
49 boolean hasAttributeNS([TreatNullAs=NullString] DOMString namespaceURI, DOMS
tring localName); | 49 boolean hasAttributeNS([TreatNullAs=NullString] DOMString namespaceURI, DOMS
tring localName); |
50 | 50 |
51 [PerWorldBindings] readonly attribute CSSStyleDeclaration style; | 51 [PerWorldBindings] readonly attribute CSSStyleDeclaration style; |
52 | 52 |
53 // DOM4 | 53 // DOM4 |
54 [Reflect, PerWorldBindings] attribute DOMString id; | 54 [Reflect, PerWorldBindings, DartNoAutoScope] attribute DOMString id; |
55 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr
ing namespaceURI; | 55 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr
ing namespaceURI; |
56 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, PerWorldBindings, R
aisesException=Setter] attribute DOMString prefix; | 56 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, PerWorldBindings, R
aisesException=Setter] attribute DOMString prefix; |
57 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr
ing localName; | 57 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr
ing localName; |
58 | 58 |
59 [RaisesException] boolean matches(DOMString selectors); | 59 [RaisesException] boolean matches(DOMString selectors); |
60 | 60 |
61 // Common extensions | 61 // Common extensions |
62 | 62 |
63 [PerWorldBindings] readonly attribute long offsetLeft; | 63 [PerWorldBindings] readonly attribute long offsetLeft; |
64 [PerWorldBindings] readonly attribute long offsetTop; | 64 [PerWorldBindings] readonly attribute long offsetTop; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; | 145 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; |
146 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; | 146 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; |
147 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; | 147 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; |
148 attribute EventHandler onwebkitfullscreenchange; | 148 attribute EventHandler onwebkitfullscreenchange; |
149 attribute EventHandler onwebkitfullscreenerror; | 149 attribute EventHandler onwebkitfullscreenerror; |
150 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler onwheel; | 150 [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventH
andler onwheel; |
151 }; | 151 }; |
152 | 152 |
153 Element implements ParentNode; | 153 Element implements ParentNode; |
154 Element implements ChildNode; | 154 Element implements ChildNode; |
OLD | NEW |