OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 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 11 matching lines...) Expand all Loading... |
22 Custom=Wrap, | 22 Custom=Wrap, |
23 DependentLifetime, | 23 DependentLifetime, |
24 ] interface Node : EventTarget { | 24 ] interface Node : EventTarget { |
25 [PerWorldBindings] readonly attribute Node parentNode; | 25 [PerWorldBindings] readonly attribute Node parentNode; |
26 [PerWorldBindings] readonly attribute Node firstChild; | 26 [PerWorldBindings] readonly attribute Node firstChild; |
27 [PerWorldBindings] readonly attribute Node lastChild; | 27 [PerWorldBindings] readonly attribute Node lastChild; |
28 [PerWorldBindings] readonly attribute Node previousSibling; | 28 [PerWorldBindings] readonly attribute Node previousSibling; |
29 [PerWorldBindings] readonly attribute Node nextSibling; | 29 [PerWorldBindings] readonly attribute Node nextSibling; |
30 [PerWorldBindings] readonly attribute Document ownerDocument; | 30 [PerWorldBindings] readonly attribute Document ownerDocument; |
31 | 31 |
| 32 // TODO(esprehn): This should return TreeScope in Sky, but we don't have |
| 33 // a TreeScope type yet. |
| 34 readonly attribute Node ownerScope; |
| 35 |
32 [CustomElementCallbacks, PerWorldBindings, RaisesException, TypeChecking=Int
erface] Node insertBefore(Node newChild, Node? refChild); | 36 [CustomElementCallbacks, PerWorldBindings, RaisesException, TypeChecking=Int
erface] Node insertBefore(Node newChild, Node? refChild); |
33 [CustomElementCallbacks, PerWorldBindings, RaisesException, TypeChecking=Int
erface] Node replaceChild(Node newChild, Node oldChild); | 37 [CustomElementCallbacks, PerWorldBindings, RaisesException, TypeChecking=Int
erface] Node replaceChild(Node newChild, Node oldChild); |
34 [CustomElementCallbacks, RaisesException, TypeChecking=Interface] Node remov
eChild(Node oldChild); | 38 [CustomElementCallbacks, RaisesException, TypeChecking=Interface] Node remov
eChild(Node oldChild); |
35 [CustomElementCallbacks, PerWorldBindings, RaisesException, TypeChecking=Int
erface] Node appendChild(Node newChild); | 39 [CustomElementCallbacks, PerWorldBindings, RaisesException, TypeChecking=Int
erface] Node appendChild(Node newChild); |
36 | 40 |
37 [ImplementedAs=hasChildren] boolean hasChildNodes(); | 41 [ImplementedAs=hasChildren] boolean hasChildNodes(); |
38 [CustomElementCallbacks] Node cloneNode(optional boolean deep); | 42 [CustomElementCallbacks] Node cloneNode(optional boolean deep); |
39 | 43 |
40 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, TreatUndefinedAs=Nu
llString, CustomElementCallbacks] attribute DOMString textContent; | 44 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, TreatUndefinedAs=Nu
llString, CustomElementCallbacks] attribute DOMString textContent; |
41 | 45 |
42 boolean contains(Node other); | 46 boolean contains(Node other); |
43 | 47 |
44 // DocumentPosition | 48 // DocumentPosition |
45 const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01; | 49 const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01; |
46 const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02; | 50 const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02; |
47 const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04; | 51 const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04; |
48 const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08; | 52 const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08; |
49 const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10; | 53 const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10; |
50 const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; | 54 const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; |
51 | 55 |
52 unsigned short compareDocumentPosition(Node other); | 56 unsigned short compareDocumentPosition(Node other); |
53 | 57 |
54 [PerWorldBindings] readonly attribute Element parentElement; | 58 [PerWorldBindings] readonly attribute Element parentElement; |
55 }; | 59 }; |
OLD | NEW |