Not documented.
- Annotations
- DomName('DocumentFragment')
- Extends
- Object
- EventTarget
- Node
- DocumentFragment
- Implements
Properties
- String baseUri
-
read-only, inherited
- List<Node> childNodes
-
read-only, inheritedA list of this node's children.
- List<Element> children
-
read / write
- Node firstChild
-
read-only, inheritedThe first child of this node.
- String innerHtml
-
read / write
- Node lastChild
-
read-only, inheritedThe last child of this node.
- Node nextNode
-
read-only, inheritedThe next sibling node.
- String nodeName
-
read-only, inheritedThe name of this node.
- List<Node> nodes
-
read / write, inheritedA modifiable list of this node's children.
- int nodeType
-
read-only, inheritedThe type of node.
- String nodeValue
-
read-only, inheritedThe value of this node.
- Events on
-
read-only, inheritedThis is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
- Document ownerDocument
-
read-only, inheritedThe document this node belongs to.
- Element parent
-
read-only, inheritedThe parent element of this node.
- Node parentNode
-
read-only, inheritedThe parent node of this node.
- Node previousNode
-
read-only, inheritedThe previous sibling node.
- String text
-
read / write, inheritedAll text within this node and its decendents.
Constructors
- DocumentFragment()
- DocumentFragment.html(String html, {NodeValidator validator, NodeTreeSanitizer treeSanitizer})
- DocumentFragment.svg(String svgContent, {NodeValidator validator, NodeTreeSanitizer treeSanitizer})
Methods
-
addEventListener(
String type, dynamic listener(Event event), [bool useCapture]) → void -
inherited
-
append(
Node newChild) → Node -
inheritedAdds a node to the end of the child nodes list of this node.
-
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 -
inheritedReturns a copy of this node.
-
contains(
Node other) → bool -
inheritedReturns true if this node contains the specified node.
-
dispatchEvent(
Event event) → bool -
inherited
-
getElementById(
String elementId) → Element -
hasChildNodes(
) → bool -
inheritedReturns true if this node has any children.
-
insertAllBefore(
Iterable<Node> newNodes, Node refChild) → Node -
inheritedInserts all of the nodes into this node directly before refChild.
-
insertBefore(
Node newChild, Node refChild) → Node -
inheritedInserts all of the nodes into this node directly before refChild.
-
query(
String relativeSelectors) → Element - Alias for querySelector. Note this function is deprecated because its semantics will be changing in the future.
-
queryAll(
String relativeSelectors) → ElementList<Element> - Alias for querySelectorAll. Note this function is deprecated because its semantics will be changing in the future.
-
querySelector(
String selectors) → Element - Finds the first descendant element of this document fragment that matches the specified group of selectors.
-
querySelectorAll(
String selectors) → ElementList<Element> - Finds all descendant elements of this document fragment that match the specified group of selectors.
-
remove(
) → void -
inheritedRemoves this node from the DOM.
-
removeEventListener(
String type, dynamic listener(Event event), [bool useCapture]) → void -
inherited
-
replaceWith(
Node otherNode) → Node -
inheritedReplaces this node with another node.
-
setInnerHtml(
String html, {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) → void -
toString(
) → String -
inheritedPrint out a String representation of this Node.