Node class

Annotated by:
  • DomName('Node')
Extends:
Implementors

Constants

ATTRIBUTE_NODE = 2
CDATA_SECTION_NODE = 4
COMMENT_NODE = 8
DOCUMENT_FRAGMENT_NODE = 11
DOCUMENT_NODE = 9
DOCUMENT_TYPE_NODE = 10
ELEMENT_NODE = 1
ENTITY_NODE = 6
ENTITY_REFERENCE_NODE = 5
NOTATION_NODE = 12
PROCESSING_INSTRUCTION_NODE = 7
TEXT_NODE = 3

Instance Properties

nodes List<Node>
read/write
baseUri String
read-only
childNodes List<Node>
read-only
firstChild Node
read-only
lastChild Node
read-only
nextNode Node
read-only
nodeName String
read-only
nodeType int
read-only
nodeValue String
read-only
ownerDocument Document
read-only
parent Element
read-only
parentNode Node
read-only
previousNode Node
read-only
text String
read/write
on Events Inherited
read-only

Instance Methods

remove ( ) → void
Removes this node from the DOM.
replaceWith ( Node otherNode ) → Node
Replaces this node with another node.
insertAllBefore ( Iterable<Node> newNodes, Node refChild ) → Node
Inserts all of the nodes into this node directly before refChild.
toString ( ) → String
Print out a String representation of this Node.
append ( Node newChild ) → Node
Adds a node to the end of the child nodes list of this node.
clone ( bool deep ) → Node
Returns a copy of this node.
contains ( Node other ) → bool
Returns true if this node contains the specified node.
hasChildNodes ( ) → bool
Returns true if this node has any children.
insertBefore ( Node newChild, Node refChild ) → Node
Inserts all of the nodes into this node directly before refChild.
addEventListener Inherited ( String type, dynamic listener(Event event), [bool useCapture] ) → void
removeEventListener Inherited ( String type, dynamic listener(Event event), [bool useCapture] ) → void
dispatchEvent Inherited ( Event event ) → bool