| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| // for details. All rights reserved. Use of this source code is governed by a | |
| // BSD-style license that can be found in the LICENSE file. | |
| // WARNING: Do not edit - generated code. | |
| /// @domName Node | |
| abstract class Node implements EventTarget { | |
| List<Node> get nodes; | |
| void set nodes(Collection<Node> value); | |
| /** | |
| * Replaces this node with another node. | |
| * @domName Node.replaceChild | |
| */ | |
| Node replaceWith(Node otherNode); | |
| /** | |
| * Removes this node from the DOM. | |
| * @domName Node.removeChild | |
| */ | |
| void remove(); | |
| static const int ATTRIBUTE_NODE = 2; | |
| static const int CDATA_SECTION_NODE = 4; | |
| static const int COMMENT_NODE = 8; | |
| static const int DOCUMENT_FRAGMENT_NODE = 11; | |
| static const int DOCUMENT_NODE = 9; | |
| static const int DOCUMENT_POSITION_CONTAINED_BY = 0x10; | |
| static const int DOCUMENT_POSITION_CONTAINS = 0x08; | |
| static const int DOCUMENT_POSITION_DISCONNECTED = 0x01; | |
| static const int DOCUMENT_POSITION_FOLLOWING = 0x04; | |
| static const int DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; | |
| static const int DOCUMENT_POSITION_PRECEDING = 0x02; | |
| static const int DOCUMENT_TYPE_NODE = 10; | |
| static const int ELEMENT_NODE = 1; | |
| static const int ENTITY_NODE = 6; | |
| static const int ENTITY_REFERENCE_NODE = 5; | |
| static const int NOTATION_NODE = 12; | |
| static const int PROCESSING_INSTRUCTION_NODE = 7; | |
| static const int TEXT_NODE = 3; | |
| /** @domName Node.attributes */ | |
| abstract NamedNodeMap get $dom_attributes; | |
| /** @domName Node.childNodes */ | |
| abstract List<Node> get $dom_childNodes; | |
| /** @domName Node.firstChild */ | |
| abstract Node get $dom_firstChild; | |
| /** @domName Node.lastChild */ | |
| abstract Node get $dom_lastChild; | |
| /** @domName Node.nextSibling */ | |
| abstract Node get nextNode; | |
| /** @domName Node.nodeType */ | |
| abstract int get $dom_nodeType; | |
| /** @domName Node.ownerDocument */ | |
| abstract Document get document; | |
| /** @domName Node.parentNode */ | |
| abstract Node get parent; | |
| /** @domName Node.previousSibling */ | |
| abstract Node get previousNode; | |
| /** @domName Node.textContent */ | |
| String text; | |
| /** @domName Node.addEventListener */ | |
| void $dom_addEventListener(String type, EventListener listener, [bool useCapture]); | |
| /** @domName Node.appendChild */ | |
| Node $dom_appendChild(Node newChild); | |
| /** @domName Node.cloneNode */ | |
| Node clone(bool deep); | |
| /** @domName Node.contains */ | |
| bool contains(Node other); | |
| /** @domName Node.dispatchEvent */ | |
| bool $dom_dispatchEvent(Event event); | |
| /** @domName Node.hasChildNodes */ | |
| bool hasChildNodes(); | |
| /** @domName Node.insertBefore */ | |
| Node insertBefore(Node newChild, Node refChild); | |
| /** @domName Node.removeChild */ | |
| Node $dom_removeChild(Node oldChild); | |
| /** @domName Node.removeEventListener */ | |
| void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]); | |
| /** @domName Node.replaceChild */ | |
| Node $dom_replaceChild(Node newChild, Node oldChild); | |
| } |