Dart SDK
dart:html
Node
nodeType
property
nodeType
Node
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
int
nodeType
read-only
The type of node.
This value is one of:
[ATTRIBUTE_NODE] if this node is an attribute.
[CDATA_SECTION_NODE] if this node is a [CDataSection].
[COMMENT_NODE] if this node is a [Comment].
[DOCUMENT_FRAGMENT_NODE] if this node is a [DocumentFragment].
[DOCUMENT_NODE] if this node is a [Document].
[DOCUMENT_TYPE_NODE] if this node is a [DocumentType] node.
[ELEMENT_NODE] if this node is an [Element].
[ENTITY_NODE] if this node is an entity.
[ENTITY_REFERENCE_NODE] if this node is an entity reference.
[NOTATION_NODE] if this node is a notation.
[PROCESSING_INSTRUCTION_NODE] if this node is a [ProcessingInstruction].
[TEXT_NODE] if this node is a [Text] node.
Other resources
Node.nodeType
from MDN.