| OLD | NEW |
| 1 // Copyright (c) 2012, 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 // WARNING: | 5 // WARNING: Do not edit - generated code. |
| 6 // This file contains documentation that is merged into the real source. | |
| 7 // Do not make code changes here. | |
| 8 | 6 |
| 9 /// @domName Node | 7 /// @domName Node |
| 10 interface Node extends EventTarget { | 8 abstract class Node implements EventTarget { |
| 11 NodeList get nodes(); | 9 List<Node> get nodes; |
| 12 | 10 |
| 13 void set nodes(Collection<Node> value); | 11 void set nodes(Collection<Node> value); |
| 14 | 12 |
| 15 /** | 13 /** |
| 16 * Replaces this node with another node. | 14 * Replaces this node with another node. |
| 17 * @domName Node.replaceChild | 15 * @domName Node.replaceChild |
| 18 */ | 16 */ |
| 19 Node replaceWith(Node otherNode); | 17 Node replaceWith(Node otherNode); |
| 20 | 18 |
| 21 /** | 19 /** |
| 22 * Removes this node from the DOM. | 20 * Removes this node from the DOM. |
| 23 * @domName Node.removeChild | 21 * @domName Node.removeChild |
| 24 */ | 22 */ |
| 25 Node remove(); | 23 void remove(); |
| 26 | 24 |
| 27 | 25 |
| 28 static final int ATTRIBUTE_NODE = 2; | 26 static const int ATTRIBUTE_NODE = 2; |
| 29 | 27 |
| 30 static final int CDATA_SECTION_NODE = 4; | 28 static const int CDATA_SECTION_NODE = 4; |
| 31 | 29 |
| 32 static final int COMMENT_NODE = 8; | 30 static const int COMMENT_NODE = 8; |
| 33 | 31 |
| 34 static final int DOCUMENT_FRAGMENT_NODE = 11; | 32 static const int DOCUMENT_FRAGMENT_NODE = 11; |
| 35 | 33 |
| 36 static final int DOCUMENT_NODE = 9; | 34 static const int DOCUMENT_NODE = 9; |
| 37 | 35 |
| 38 static final int DOCUMENT_POSITION_CONTAINED_BY = 0x10; | 36 static const int DOCUMENT_POSITION_CONTAINED_BY = 0x10; |
| 39 | 37 |
| 40 static final int DOCUMENT_POSITION_CONTAINS = 0x08; | 38 static const int DOCUMENT_POSITION_CONTAINS = 0x08; |
| 41 | 39 |
| 42 static final int DOCUMENT_POSITION_DISCONNECTED = 0x01; | 40 static const int DOCUMENT_POSITION_DISCONNECTED = 0x01; |
| 43 | 41 |
| 44 static final int DOCUMENT_POSITION_FOLLOWING = 0x04; | 42 static const int DOCUMENT_POSITION_FOLLOWING = 0x04; |
| 45 | 43 |
| 46 static final int DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; | 44 static const int DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; |
| 47 | 45 |
| 48 static final int DOCUMENT_POSITION_PRECEDING = 0x02; | 46 static const int DOCUMENT_POSITION_PRECEDING = 0x02; |
| 49 | 47 |
| 50 static final int DOCUMENT_TYPE_NODE = 10; | 48 static const int DOCUMENT_TYPE_NODE = 10; |
| 51 | 49 |
| 52 static final int ELEMENT_NODE = 1; | 50 static const int ELEMENT_NODE = 1; |
| 53 | 51 |
| 54 static final int ENTITY_NODE = 6; | 52 static const int ENTITY_NODE = 6; |
| 55 | 53 |
| 56 static final int ENTITY_REFERENCE_NODE = 5; | 54 static const int ENTITY_REFERENCE_NODE = 5; |
| 57 | 55 |
| 58 static final int NOTATION_NODE = 12; | 56 static const int NOTATION_NODE = 12; |
| 59 | 57 |
| 60 static final int PROCESSING_INSTRUCTION_NODE = 7; | 58 static const int PROCESSING_INSTRUCTION_NODE = 7; |
| 61 | 59 |
| 62 static final int TEXT_NODE = 3; | 60 static const int TEXT_NODE = 3; |
| 63 | 61 |
| 64 /** @domName Node.attributes */ | 62 /** @domName Node.attributes */ |
| 65 final NamedNodeMap $dom_attributes; | 63 abstract NamedNodeMap get $dom_attributes; |
| 66 | 64 |
| 67 /** @domName Node.childNodes */ | 65 /** @domName Node.childNodes */ |
| 68 final NodeList $dom_childNodes; | 66 abstract List<Node> get $dom_childNodes; |
| 69 | 67 |
| 70 /** @domName Node.firstChild */ | 68 /** @domName Node.firstChild */ |
| 71 final Node $dom_firstChild; | 69 abstract Node get $dom_firstChild; |
| 72 | 70 |
| 73 /** @domName Node.lastChild */ | 71 /** @domName Node.lastChild */ |
| 74 final Node $dom_lastChild; | 72 abstract Node get $dom_lastChild; |
| 75 | 73 |
| 76 /** @domName Node.nextSibling */ | 74 /** @domName Node.nextSibling */ |
| 77 final Node nextNode; | 75 abstract Node get nextNode; |
| 78 | 76 |
| 79 /** @domName Node.nodeType */ | 77 /** @domName Node.nodeType */ |
| 80 final int $dom_nodeType; | 78 abstract int get $dom_nodeType; |
| 81 | 79 |
| 82 /** @domName Node.ownerDocument */ | 80 /** @domName Node.ownerDocument */ |
| 83 final Document document; | 81 abstract Document get document; |
| 84 | 82 |
| 85 /** @domName Node.parentNode */ | 83 /** @domName Node.parentNode */ |
| 86 final Node parent; | 84 abstract Node get parent; |
| 87 | 85 |
| 88 /** @domName Node.previousSibling */ | 86 /** @domName Node.previousSibling */ |
| 89 final Node previousNode; | 87 abstract Node get previousNode; |
| 90 | 88 |
| 91 /** @domName Node.textContent */ | 89 /** @domName Node.textContent */ |
| 92 String text; | 90 String text; |
| 93 | 91 |
| 94 /** @domName Node.addEventListener */ | 92 /** @domName Node.addEventListener */ |
| 95 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]); | 93 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]); |
| 96 | 94 |
| 97 /** @domName Node.appendChild */ | 95 /** @domName Node.appendChild */ |
| 98 Node $dom_appendChild(Node newChild); | 96 Node $dom_appendChild(Node newChild); |
| 99 | 97 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 115 /** @domName Node.removeChild */ | 113 /** @domName Node.removeChild */ |
| 116 Node $dom_removeChild(Node oldChild); | 114 Node $dom_removeChild(Node oldChild); |
| 117 | 115 |
| 118 /** @domName Node.removeEventListener */ | 116 /** @domName Node.removeEventListener */ |
| 119 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]); | 117 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]); |
| 120 | 118 |
| 121 /** @domName Node.replaceChild */ | 119 /** @domName Node.replaceChild */ |
| 122 Node $dom_replaceChild(Node newChild, Node oldChild); | 120 Node $dom_replaceChild(Node newChild, Node oldChild); |
| 123 | 121 |
| 124 } | 122 } |
| OLD | NEW |