Node Interface
Node
is an interface from which a number of DOM types inherit, and allows these various types to be treated (or tested) similarly.The following all inherit this interface and its methods and properties (though they may return null in particular cases where not relevant; or throw an exception when adding children to a node type for which no children can exist):
Document
, Element
, Attr
, CharacterData
(which Text
, Comment
, and CDATASection
inherit), ProcessingInstruction
, DocumentFragment
, DocumentType
, Notation
, Entity
, EntityReference
Extends
Subinterfaces
Attr, CharacterData, DocumentType, Element, Entity, EntityReference, Notation, ProcessingInstruction
Static Fields
Code final int DOCUMENT_POSITION_CONTAINED_BY #
static final int DOCUMENT_POSITION_CONTAINED_BY = 0x10;
Code final int DOCUMENT_POSITION_DISCONNECTED #
static final int DOCUMENT_POSITION_DISCONNECTED = 0x01;
Code final int DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC #
static final int DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20;
Methods
Code Node insertBefore(Node newChild, Node refChild) #
Node insertBefore(Node newChild, Node refChild);
Code void set nodes(Collection<Node> value) #
void set nodes(Collection<Node> value);
Code Node replaceWith(Node otherNode) #
Replaces this node with another node.
Node replaceWith(Node otherNode);
Code void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) #
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
Code void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) #
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
Code Node $dom_replaceChild(Node newChild, Node oldChild) #
Node $dom_replaceChild(Node newChild, Node oldChild);
Fields
Code final NamedNodeMap $dom_attributes #
final NamedNodeMap $dom_attributes;
This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.