| 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 void set nodes(Collection<Node> value); |
| 11 void set nodes(value); | |
| 12 | 11 |
| 13 Node get nextNode(); | 12 Node get nextNode(); |
| 14 | 13 |
| 15 Document get document(); | 14 Document get document(); |
| 16 | 15 |
| 17 Node get parent(); | 16 Node get parent(); |
| 18 | 17 |
| 19 Node get previousNode(); | 18 Node get previousNode(); |
| 20 | 19 |
| 21 String get text(); | 20 String get text(); |
| 22 | 21 |
| 23 void set text(String value); | 22 void set text(String value); |
| 24 | 23 |
| 25 Node replaceWith(Node otherNode); | 24 Node replaceWith(Node otherNode); |
| 26 | 25 |
| 27 Node remove(); | 26 Node remove(); |
| 28 | 27 |
| 29 bool contains(Node otherNode); | 28 bool contains(Node otherNode); |
| 30 | 29 |
| 31 // TODO(jacobr): remove when/if Array supports a method similar to | 30 // TODO(jacobr): remove when/if Array supports a method similar to |
| 32 // insertBefore or we switch NodeList to implement LinkedList rather than | 31 // insertBefore or we switch NodeList to implement LinkedList rather than |
| 33 // array. | 32 // array. |
| 34 Node insertBefore(Node newChild, Node refChild); | 33 Node insertBefore(Node newChild, Node refChild); |
| 35 | 34 |
| 36 Node clone(bool deep); | 35 Node clone(bool deep); |
| 37 } | 36 } |
| OLD | NEW |