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