DocumentFragment class

Inheritance
Implemented types
Implementers
Annotations
  • @Native("DocumentFragment")

Constructors

DocumentFragment()
factory
DocumentFragment.html(String? html, {NodeValidator? validator, NodeTreeSanitizer? treeSanitizer})
factory
DocumentFragment.svg(String? svgContent, {NodeValidator? validator, NodeTreeSanitizer? treeSanitizer})
factory

Properties

baseUri String?
read-onlyinherited
childNodes List<Node>
A list of this node's children.
read-onlyinherited
children List<Element>
read / write
firstChild Node?
The first child of this node.
read-onlyinherited
hashCode int
The hash code for this object.
read-onlyinherited
innerHtml String?
read / write
isConnected bool?
read-onlyinherited
lastChild Node?
The last child of this node.
read-onlyinherited
nextNode Node?
The next sibling node.
read-onlyinherited
nodeName String?
The name of this node.
read-onlyinherited
nodes List<Node>
A modifiable list of this node's children.
read / writeinherited
nodeType int
The type of node.
read-onlyinherited
nodeValue String?
The value of this node.
read-onlyinherited
on Events
This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
read-onlyinherited
ownerDocument Document?
The document this node belongs to.
read-onlyinherited
parent Element?
The parent element of this node.
read-onlyinherited
parentNode Node?
The parent node of this node.
read-onlyinherited
previousNode Node?
The previous sibling node.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
text String?
All text within this node and its descendants.
read / writeinherited

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.
inherited
appendHtml(String text, {NodeValidator? validator, NodeTreeSanitizer? treeSanitizer}) → void
Parses the specified text as HTML and adds the resulting node after the last child of this document fragment.
appendText(String text) → void
Adds the specified text as a text node after the last child of this document fragment.
clone(bool? deep) Node
Returns a copy of this node.
inherited
contains(Node? other) bool
Returns true if this node contains the specified node.
inherited
dispatchEvent(Event event) bool
inherited
getElementById(String elementId) Element?
override
getRootNode([Map? options]) Node
inherited
hasChildNodes() bool
Returns true if this node has any children.
inherited
insertAllBefore(Iterable<Node> newNodes, Node child) → void
Inserts all of the nodes into this node directly before child.
inherited
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.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
querySelector(String selectors) Element?
Finds the first descendant element of this document fragment that matches the specified group of selectors.
override
querySelectorAll<T extends Element>(String selectors) ElementList<T>
Finds all descendant elements of this document fragment that match the specified group of selectors.
remove() → void
Removes this node from the DOM.
inherited
removeEventListener(String type, EventListener? listener, [bool? useCapture]) → void
inherited
replaceWith(Node otherNode) Node
Replaces this node with another node.
inherited
setInnerHtml(String? html, {NodeValidator? validator, NodeTreeSanitizer? treeSanitizer}) → void
toString() String
Print out a String representation of this Node.
inherited

Operators

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