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 interface Element : Node { | 21 interface Element : Node { |
22 | 22 |
23 // DOM Level 1 Core | 23 // DOM Level 1 Core |
24 | 24 |
25 readonly attribute DOMString? tagName; | 25 readonly attribute DOMString? tagName; |
26 | 26 |
27 DOMString? getAttribute(DOMString name); | 27 DOMString? getAttribute(DOMString name); |
28 [RaisesException, CustomElementCallbacks] void setAttribute(DOMString name,
DOMString value); | 28 [RaisesException, CustomElementCallbacks] void setAttribute(DOMString name,
DOMString value); |
29 [CustomElementCallbacks] void removeAttribute(DOMString name); | 29 [CustomElementCallbacks] void removeAttribute(DOMString name); |
30 [MeasureAs=ElementGetAttributeNode] Attr getAttributeNode([Default=Undefined
] optional DOMString name); | 30 [MeasureAs=ElementGetAttributeNode] Attr getAttributeNode(DOMString name); |
31 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNode]
Attr setAttributeNode([Default=Undefined] optional Attr newAttr); | 31 [RaisesException, CustomElementCallbacks, MeasureAs=ElementSetAttributeNode]
Attr setAttributeNode(Attr newAttr); |
32 [RaisesException, CustomElementCallbacks, MeasureAs=ElementRemoveAttributeNo
de] Attr removeAttributeNode([Default=Undefined] optional Attr oldAttr); | 32 [RaisesException, CustomElementCallbacks, MeasureAs=ElementRemoveAttributeNo
de] Attr removeAttributeNode(Attr oldAttr); |
33 HTMLCollection getElementsByTagName(DOMString name); | 33 HTMLCollection getElementsByTagName(DOMString name); |
34 | 34 |
35 [PerWorldBindings, ImplementedAs=attributesForBindings] readonly attribute N
amedNodeMap attributes; | 35 [PerWorldBindings, ImplementedAs=attributesForBindings] readonly attribute N
amedNodeMap attributes; |
36 [MeasureAs=HasAttributes] boolean hasAttributes(); | 36 [MeasureAs=HasAttributes] boolean hasAttributes(); |
37 | 37 |
38 // DOM Level 2 Core | 38 // DOM Level 2 Core |
39 | 39 |
40 DOMString? getAttributeNS(DOMString? namespaceURI, DOMString localName); | 40 DOMString? getAttributeNS(DOMString? namespaceURI, DOMString localName); |
41 [RaisesException, CustomElementCallbacks] void setAttributeNS(DOMString? nam
espaceURI, DOMString qualifiedName, DOMString value); | 41 [RaisesException, CustomElementCallbacks] void setAttributeNS(DOMString? nam
espaceURI, DOMString qualifiedName, DOMString value); |
42 [CustomElementCallbacks] void removeAttributeNS(DOMString? namespaceURI, DOM
String localName); | 42 [CustomElementCallbacks] void removeAttributeNS(DOMString? namespaceURI, DOM
String localName); |
43 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc
alName); | 43 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc
alName); |
44 [MeasureAs=ElementGetAttributeNodeNS] Attr getAttributeNodeNS([Default=Undef
ined] optional DOMString? namespaceURI, | 44 [MeasureAs=ElementGetAttributeNodeNS] Attr getAttributeNodeNS(DOMString? nam
espaceURI, DOMString localName); |
45 [Default=Undef
ined] optional DOMString localName); | 45 [RaisesException, CustomElementCallbacks, DeprecateAs=ElementSetAttributeNod
eNS] Attr setAttributeNodeNS(Attr newAttr); // Removed from DOM4. |
46 [RaisesException, CustomElementCallbacks, DeprecateAs=ElementSetAttributeNod
eNS] Attr setAttributeNodeNS([Default=Undefined] optional Attr newAttr); // Remo
ved from DOM4. | |
47 boolean hasAttribute(DOMString name); | 46 boolean hasAttribute(DOMString name); |
48 boolean hasAttributeNS(DOMString? namespaceURI, DOMString localName); | 47 boolean hasAttributeNS(DOMString? namespaceURI, DOMString localName); |
49 | 48 |
50 [PerWorldBindings] readonly attribute CSSStyleDeclaration style; | 49 [PerWorldBindings] readonly attribute CSSStyleDeclaration style; |
51 | 50 |
52 // DOM4 | 51 // DOM4 |
53 [Reflect] attribute DOMString id; | 52 [Reflect] attribute DOMString id; |
54 readonly attribute DOMString? namespaceURI; | 53 readonly attribute DOMString? namespaceURI; |
55 readonly attribute DOMString? prefix; | 54 readonly attribute DOMString? prefix; |
56 readonly attribute DOMString? localName; | 55 readonly attribute DOMString? localName; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 attribute EventHandler onselectstart; | 125 attribute EventHandler onselectstart; |
127 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; | 126 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; |
128 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; | 127 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; |
129 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; | 128 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; |
130 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; | 129 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; |
131 attribute EventHandler onwheel; | 130 attribute EventHandler onwheel; |
132 }; | 131 }; |
133 | 132 |
134 Element implements ParentNode; | 133 Element implements ParentNode; |
135 Element implements ChildNode; | 134 Element implements ChildNode; |
OLD | NEW |