Node class - dart:html library (original) (raw)

Inheritance

Implementers

Annotations

Properties

baseUriString?

no setter

childNodesList<Node>

A list of this node's children.

no setter

firstChildNode?

The first child of this node.

no setter

hashCodeint

The hash code for this object.

no setterinherited

isConnectedbool?

no setter

lastChildNode?

The last child of this node.

no setter

nextNodeNode?

The next sibling node.

no setter

nodeNameString?

The name of this node.

no setter

nodesList<Node>

A modifiable list of this node's children.

getter/setter pair

nodeTypeint

The type of node.

no setter

nodeValueString?

The value of this node.

no setter

onEvents

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

no setterinherited

ownerDocumentDocument?

The document this node belongs to.

no setter

parentElement?

The parent element of this node.

no setter

parentNodeNode?

The parent node of this node.

no setter

previousNodeNode?

The previous sibling node.

no setter

runtimeTypeType

A representation of the runtime type of the object.

no setterinherited

textString?

All text within this node and its descendants.

getter/setter pair

Methods

addEventListener(String type, EventListener? listener, [bool? useCapture])→ void

inherited

append(Node node)→ 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.

dispatchEvent(Event event)→ bool

inherited

getRootNode([Map? options])→ Node

hasChildNodes()→ bool

Returns true if this node has any children.

insertAllBefore(Iterable<Node> newNodes, Node child)→ void

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

insertBefore(Node node, Node? child)→ Node

Inserts the given node into this node directly before child. If child is null, then the given node is inserted at the end of this node's child nodes.

noSuchMethod(Invocation invocation)→ dynamic

Invoked when a nonexistent method or property is accessed.

inherited

remove()→ void

Removes this node from the DOM.

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

inherited

replaceWith(Node otherNode)→ Node

Replaces this node with another node.

toString()→ String

Print out a String representation of this Node.

Operators

operator ==(Object other)→ bool

The equality operator.

inherited

Constants

ATTRIBUTE_NODE → const int

CDATA_SECTION_NODE → const int

COMMENT_NODE → const int

DOCUMENT_FRAGMENT_NODE → const int

DOCUMENT_NODE → const int

DOCUMENT_TYPE_NODE → const int

ELEMENT_NODE → const int

ENTITY_NODE → const int

ENTITY_REFERENCE_NODE → const int

NOTATION_NODE → const int

PROCESSING_INSTRUCTION_NODE → const int

TEXT_NODE → const int