Node class

Inheritance
Implemented by
Annotations
  • @DomName('Node')

Constants

ATTRIBUTE_NODEint
@DocsEditable(), @DomName('Node.ATTRIBUTE_NODE')
2
CDATA_SECTION_NODEint
@DocsEditable(), @DomName('Node.CDATA_SECTION_NODE')
4
COMMENT_NODEint
@DocsEditable(), @DomName('Node.COMMENT_NODE')
8
DOCUMENT_FRAGMENT_NODEint
@DocsEditable(), @DomName('Node.DOCUMENT_FRAGMENT_NODE')
11
DOCUMENT_NODEint
@DocsEditable(), @DomName('Node.DOCUMENT_NODE')
9
DOCUMENT_TYPE_NODEint
@DocsEditable(), @DomName('Node.DOCUMENT_TYPE_NODE')
10
ELEMENT_NODEint
@DocsEditable(), @DomName('Node.ELEMENT_NODE')
1
ENTITY_NODEint
@DocsEditable(), @DomName('Node.ENTITY_NODE')
6
ENTITY_REFERENCE_NODEint
@DocsEditable(), @DomName('Node.ENTITY_REFERENCE_NODE')
5
NOTATION_NODEint
@DocsEditable(), @DomName('Node.NOTATION_NODE')
12
PROCESSING_INSTRUCTION_NODEint
@DocsEditable(), @DomName('Node.PROCESSING_INSTRUCTION_NODE')
7
TEXT_NODEint
@DocsEditable(), @DomName('Node.TEXT_NODE')
3

Static Properties

instanceRuntimeTypeType
@Deprecated("Internal Use Only"), read-only

Constructors

Node.internal_()

Properties

baseUriString
@DocsEditable(), @DomName('Node.baseURI'), read-only
childNodesList<Node>
@DocsEditable(), @DomName('Node.childNodes'), read-only

A list of this node's children.

firstChildNode
@DocsEditable(), @DomName('Node.firstChild'), read-only

The first child of this node.

lastChildNode
@DocsEditable(), @DomName('Node.lastChild'), read-only

The last child of this node.

nextNodeNode
@DocsEditable(), @DomName('Node.nextSibling'), read-only

The next sibling node.

nodeNameString
@DocsEditable(), @DomName('Node.nodeName'), read-only

The name of this node.

nodesList<Node>
read / write

A modifiable list of this node's children.

nodeTypeint
@DocsEditable(), @DomName('Node.nodeType'), read-only

The type of node.

nodeValueString
@DocsEditable(), @DomName('Node.nodeValue'), read-only

The value of this node.

ownerDocumentDocument
@DocsEditable(), @DomName('Node.ownerDocument'), read-only

The document this node belongs to.

parentElement
@DocsEditable(), @DomName('Node.parentElement'), read-only

The parent element of this node.

parentNodeNode
@DocsEditable(), @DomName('Node.parentNode'), read-only

The parent node of this node.

previousNodeNode
@DocsEditable(), @DomName('Node.previousSibling'), read-only

The previous sibling node.

textString
@DocsEditable(), @DomName('Node.textContent'), read / write

All text within this node and its descendents.

treeRootNode
@DocsEditable(), @DomName('Node.treeRoot'), @Experimental(), read-only
hashCodeint
read-only, inherited
onEvents
read-only, inherited

This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.

runtimeTypeType
read-only, inherited

A representation of the runtime type of the object.

Operators

operator ==(other) → bool
inherited

The equality operator.

Methods

append(Node node) → Node
@DocsEditable(), @DomName('Node.appendChild')

Adds a node to the end of the child nodes list of this node.

clone(bool deep) → Node
@DocsEditable(), @DomName('Node.cloneNode')

Returns a copy of this node.

contains(Node other) → bool
@DocsEditable(), @DomName('Node.contains')

Returns true if this node contains the specified node.

hasChildNodes() → bool
@DocsEditable(), @DomName('Node.hasChildNodes')

Returns true if this node has any children.

insertAllBefore(Iterable<Node> newNodes, Node refChild) → Node

Inserts all of the nodes into this node directly before refChild.

insertBefore(Node node, Node child) → Node
@DocsEditable(), @DomName('Node.insertBefore')

Inserts all of the nodes into this node directly before refChild.

remove() → void
@DomName('Node.removeChild')

Removes this node from the DOM.

replaceWith(Node otherNode) → Node
@DomName('Node.replaceChild')

Replaces this node with another node.

toString() → String

Print out a String representation of this Node.

addEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
dispatchEvent(Event event) → bool
@DocsEditable(), @DomName('EventTarget.dispatchEvent'), inherited
noSuchMethod(Invocation invocation) → dynamic
inherited

Invoked when a non-existent method or property is accessed.

removeEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/Node-class.html