Dart API Referencedart:htmlNode

Node Interface

A 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

EventTarget

Subinterfaces

Attr, CharacterData, DocumentType, Element, Entity, EntityReference, Notation, ProcessingInstruction

Static Fields

Code final int ATTRIBUTE_NODE #

static final int ATTRIBUTE_NODE = 2;

Code final int CDATA_SECTION_NODE #

static final int CDATA_SECTION_NODE = 4;

Code final int COMMENT_NODE #

static final int COMMENT_NODE = 8;

Code final int DOCUMENT_FRAGMENT_NODE #

static final int DOCUMENT_FRAGMENT_NODE = 11;

Code final int DOCUMENT_NODE #

static final int DOCUMENT_NODE = 9;

Code final int DOCUMENT_POSITION_CONTAINED_BY #

static final int DOCUMENT_POSITION_CONTAINED_BY = 0x10;

Code final int DOCUMENT_POSITION_CONTAINS #

static final int DOCUMENT_POSITION_CONTAINS = 0x08;

Code final int DOCUMENT_POSITION_DISCONNECTED #

static final int DOCUMENT_POSITION_DISCONNECTED = 0x01;

Code final int DOCUMENT_POSITION_FOLLOWING #

static final int DOCUMENT_POSITION_FOLLOWING = 0x04;

Code final int DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC #

static final int DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20;

Code final int DOCUMENT_POSITION_PRECEDING #

static final int DOCUMENT_POSITION_PRECEDING = 0x02;

Code final int DOCUMENT_TYPE_NODE #

static final int DOCUMENT_TYPE_NODE = 10;

Code final int ELEMENT_NODE #

static final int ELEMENT_NODE = 1;

Code final int ENTITY_NODE #

static final int ENTITY_NODE = 6;

Code final int ENTITY_REFERENCE_NODE #

static final int ENTITY_REFERENCE_NODE = 5;

Code final int NOTATION_NODE #

static final int NOTATION_NODE = 12;

Code final int PROCESSING_INSTRUCTION_NODE #

static final int PROCESSING_INSTRUCTION_NODE = 7;

Code final int TEXT_NODE #

static final int TEXT_NODE = 3;

Methods

Code Node clone(bool deep) #

Node clone(bool deep);

Code bool contains(Node other) #

bool contains(Node other);

Code bool hasChildNodes() #

bool hasChildNodes();

Code Node insertBefore(Node newChild, Node refChild) #

Node insertBefore(Node newChild, Node refChild);

Code NodeList get nodes() #

NodeList get nodes();

Code void set nodes(Collection<Node> value) #

void set nodes(Collection<Node> value);

Code Node remove() #

Removes this node from the DOM.

Node remove();

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 Node $dom_appendChild(Node newChild) #

Node $dom_appendChild(Node newChild);

Code bool $dom_dispatchEvent(Event event) #

bool $dom_dispatchEvent(Event event);

Code Node $dom_removeChild(Node oldChild) #

Node $dom_removeChild(Node oldChild);

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 Document document #

final Document document;

Code final Node nextNode #

final Node nextNode;

Code final Node parent #

final Node parent;

Code final Node previousNode #

final Node previousNode;

Code String text #

String text;

Code final NamedNodeMap $dom_attributes #

final NamedNodeMap $dom_attributes;

Code final NodeList $dom_childNodes #

final NodeList $dom_childNodes;

Code final Node $dom_firstChild #

final Node $dom_firstChild;

Code final Node $dom_lastChild #

final Node $dom_lastChild;

Code final int $dom_nodeType #

final int $dom_nodeType;

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.