OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
2 // for details. All rights reserved. Use of this source code is governed by a | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 // TODO(jacobr): stop extending eventTarget. | |
6 interface Node extends EventTarget { | |
7 | |
8 NodeList get nodes(); | |
9 | |
10 void set nodes(Collection<Node> value); | |
11 | |
12 Node get nextNode(); | |
13 | |
14 Document get document(); | |
15 | |
16 Node get parent(); | |
17 | |
18 Node get previousNode(); | |
19 | |
20 String get text(); | |
21 | |
22 void set text(String value); | |
23 | |
24 Node replaceWith(Node otherNode); | |
25 | |
26 Node remove(); | |
27 | |
28 bool contains(Node otherNode); | |
29 | |
30 // TODO(jacobr): remove when/if Array supports a method similar to | |
31 // insertBefore or we switch NodeList to implement LinkedList rather than | |
32 // array. | |
33 Node insertBefore(Node newChild, Node refChild); | |
34 | |
35 Node clone(bool deep); | |
36 } | |
OLD | NEW |