HtmlDomDocumentFragment class

Adapter for html package DocumentFragment.

Inheritance
Implemented types

Constructors

HtmlDomDocumentFragment(Node fragment)

Properties

childNodes List<DomNode>
The child nodes of this node.
no setterinherited
children List<DomElement>
The element children of this node (excludes text nodes, etc.).
no setterinherited
firstChild DomNode?
The first child node, or null if no children.
no setterinherited
firstElementChild DomElement?
The first element child, or null if no element children.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
innerHTML String
The HTML content of this node's children.
getter/setter pairinherited
lastChild DomNode?
The last child node, or null if no children.
no setterinherited
lastElementChild DomElement?
The last element child, or null if no element children.
no setterinherited
nextSibling DomNode?
The next sibling node.
no setterinherited
nodeName String?
The name of the node.
no setterinherited
nodeType NodeType
The type of node (element, text, comment, etc.).
no setterinherited
parentElement DomElement?
The parent element of this node, or null if parent is not an element.
no setterinherited
parentNode DomNode?
The parent node of this node.
no setterinherited
previousSibling DomNode?
The previous sibling node.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textContent String?
The text content of this node and its descendants.
getter/setter pairinherited
unwrap → Node
Gets the underlying html package node.
no setterinherited

Methods

appendChild(DomNode child) DomNode
Appends a child node to this node's children.
inherited
getElementsByTagName(String tag) List<DomElement>
Gets all descendant elements with the specified tag name.
inherited
insertBefore(DomNode newNode, DomNode? referenceNode) DomNode
Inserts a node before a reference node in the children list.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
querySelector(String selectors) DomElement?
Returns the first descendant element matching the selector.
inherited
querySelectorAll(String selectors) List<DomElement>
Returns all descendant elements matching the selector.
inherited
remove() DomNode
Removes this node from its parent.
inherited
removeChild(DomNode child) DomNode
Removes a child node from this node's children.
inherited
replaceChild(DomNode newNode, DomNode oldNode) DomNode
Replaces a child node with a new node.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited