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