OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // TODO(jacobr): stop extending eventTarget. | 5 // TODO(jacobr): stop extending eventTarget. |
6 interface Node extends EventTarget { | 6 interface Node extends EventTarget { |
7 | 7 |
8 NodeList get nodes(); | 8 NodeList get nodes(); |
9 | 9 |
10 // TODO: The type of value should be Collection<Node>. See http://b/5392897 | 10 // TODO: The type of value should be Collection<Node>. See http://b/5392897 |
11 void set nodes(value); | 11 void set nodes(value); |
(...skipping 15 matching lines...) Expand all Loading... |
27 Node remove(); | 27 Node remove(); |
28 | 28 |
29 bool contains(Node otherNode); | 29 bool contains(Node otherNode); |
30 | 30 |
31 // TODO(jacobr): remove when/if Array supports a method similar to | 31 // TODO(jacobr): remove when/if Array supports a method similar to |
32 // insertBefore or we switch NodeList to implement LinkedList rather than | 32 // insertBefore or we switch NodeList to implement LinkedList rather than |
33 // array. | 33 // array. |
34 Node insertBefore(Node newChild, Node refChild); | 34 Node insertBefore(Node newChild, Node refChild); |
35 | 35 |
36 Node clone(bool deep); | 36 Node clone(bool deep); |
| 37 |
| 38 bool get _inDocument(); |
37 } | 39 } |
OLD | NEW |