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, | 22 SpecialWrapFor=HTMLElement, |
23 ] interface Element : Node { | 23 ] interface Element : Node { |
24 readonly attribute DOMString? tagName; | 24 readonly attribute DOMString? tagName; |
25 | 25 |
26 DOMString? getAttribute(DOMString name); | 26 DOMString? getAttribute(DOMString name); |
27 [RaisesException, CustomElementCallbacks] void setAttribute(DOMString name,
DOMString value); | 27 [RaisesException, CustomElementCallbacks] void setAttribute(DOMString name,
DOMString value); |
28 [CustomElementCallbacks] void removeAttribute(DOMString name); | 28 [CustomElementCallbacks] void removeAttribute(DOMString name); |
29 | |
30 [PerWorldBindings, ImplementedAs=attributesForBindings] readonly attribute N
amedNodeMap attributes; | |
31 [MeasureAs=HasAttributes] boolean hasAttributes(); | |
32 | |
33 boolean hasAttribute(DOMString name); | 29 boolean hasAttribute(DOMString name); |
34 | 30 boolean hasAttributes(); |
35 sequence<Attr> getAttributes(); | 31 sequence<Attr> getAttributes(); |
36 | 32 |
37 [PerWorldBindings] readonly attribute CSSStyleDeclaration style; | 33 [PerWorldBindings] readonly attribute CSSStyleDeclaration style; |
38 | 34 |
39 [Reflect] attribute DOMString id; | 35 [Reflect] attribute DOMString id; |
40 readonly attribute DOMString? localName; | 36 readonly attribute DOMString? localName; |
41 | 37 |
42 [RaisesException] boolean matches(DOMString selectors); | 38 [RaisesException] boolean matches(DOMString selectors); |
43 | 39 |
44 readonly attribute long offsetLeft; | 40 readonly attribute long offsetLeft; |
(...skipping 27 matching lines...) Expand all Loading... |
72 [PerWorldBindings] readonly attribute ShadowRoot shadowRoot; | 68 [PerWorldBindings] readonly attribute ShadowRoot shadowRoot; |
73 NodeList getDestinationInsertionPoints(); | 69 NodeList getDestinationInsertionPoints(); |
74 | 70 |
75 // CSSOM View Module API | 71 // CSSOM View Module API |
76 ClientRectList getClientRects(); | 72 ClientRectList getClientRects(); |
77 ClientRect getBoundingClientRect(); | 73 ClientRect getBoundingClientRect(); |
78 }; | 74 }; |
79 | 75 |
80 Element implements ParentNode; | 76 Element implements ParentNode; |
81 Element implements ChildNode; | 77 Element implements ChildNode; |
OLD | NEW |