Dart SDK
dart:html
Node
class
Node
Constants
Properties
Methods
Constants
ATTRIBUTE_NODE
CDATA_SECTION_NODE
COMMENT_NODE
DOCUMENT_FRAGMENT_NODE
DOCUMENT_NODE
DOCUMENT_TYPE_NODE
ELEMENT_NODE
ENTITY_NODE
ENTITY_REFERENCE_NODE
NOTATION_NODE
PROCESSING_INSTRUCTION_NODE
TEXT_NODE
Properties
nodes
childNodes
baseUri
firstChild
lastChild
nextNode
nodeName
nodeType
nodeValue
ownerDocument
parent
parentNode
previousNode
text
on
Methods
remove
replaceWith
insertAllBefore
toString
append
clone
contains
hasChildNodes
insertBefore
addEventListener
removeEventListener
dispatchEvent
(Not documented.)
Annotations
DomName('Node')
Extends
Object
EventTarget
Node
Implemented by
CharacterData
Document
DocumentFragment
Element
Constants
int
ATTRIBUTE_NODE
=
2
const
int
CDATA_SECTION_NODE
=
4
const
int
COMMENT_NODE
=
8
const
int
DOCUMENT_FRAGMENT_NODE
=
11
const
int
DOCUMENT_NODE
=
9
const
int
DOCUMENT_TYPE_NODE
=
10
const
int
ELEMENT_NODE
=
1
const
int
ENTITY_NODE
=
6
const
int
ENTITY_REFERENCE_NODE
=
5
const
int
NOTATION_NODE
=
12
const
int
PROCESSING_INSTRUCTION_NODE
=
7
const
int
TEXT_NODE
=
3
const
Properties
List
<
Node
>
nodes
read / write
A modifiable list of this node's children.
List
<
Node
>
childNodes
read-only
A list of this node's children.
String
baseUri
read-only
Node
firstChild
read-only
The first child of this node.
Node
lastChild
read-only
The last child of this node.
Node
nextNode
read-only
The next sibling node.
String
nodeName
read-only
The name of this node.
int
nodeType
read-only
The type of node.
String
nodeValue
read-only
The value of this node.
Document
ownerDocument
read-only
The document this node belongs to.
Element
parent
read-only
The parent element of this node.
Node
parentNode
read-only
The parent node of this node.
Node
previousNode
read-only
The previous sibling node.
String
text
read / write
All text within this node and its decendents.
Events
on
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.
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
(
String
type
,
dynamic
listener
(
Event
event
)
, [
bool
useCapture
]) →
void
inherited
removeEventListener
(
String
type
,
dynamic
listener
(
Event
event
)
, [
bool
useCapture
]) →
void
inherited
dispatchEvent
(
Event
event
) →
bool
inherited