DocumentFragment class
The interface represents a minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is due to the fact that the document fragment isn't part of the active document tree structure. Changes made to the fragment don't affect the document (even on reflow) or incur any performance impact when changes are made.
EventTarget
Node
DocumentFragment
- Implemented types
- Implementers
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- DocumentFragment()
-
factory
Properties
- baseURI → String
-
Available on Node, provided by the PropsNode extension
no setter - childElementCount → int
-
Available on ParentNode, provided by the PropsParentNode extension
no setter - childNodes → NodeList
-
Available on Node, provided by the PropsNode extension
no setter - children → HTMLCollection
-
Available on ParentNode, provided by the PropsParentNode extension
no setter - firstChild → Node?
-
Available on Node, provided by the PropsNode extension
no setter - firstElementChild → Element?
-
Available on ParentNode, provided by the PropsParentNode extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- isConnected → bool
-
Available on Node, provided by the PropsNode extension
no setter - lastChild → Node?
-
Available on Node, provided by the PropsNode extension
no setter - lastElementChild → Element?
-
Available on ParentNode, provided by the PropsParentNode extension
no setter - nextSibling → Node?
-
Available on Node, provided by the PropsNode extension
no setter - nodeName → String
-
Available on Node, provided by the PropsNode extension
no setter - nodeType → int
-
Available on Node, provided by the PropsNode extension
no setter - nodeValue ↔ String?
-
Available on Node, provided by the PropsNode extension
getter/setter pair - ownerDocument → Document?
-
Available on Node, provided by the PropsNode extension
no setter - parentElement → Element?
-
Available on Node, provided by the PropsNode extension
no setter - parentNode → Node?
-
Available on Node, provided by the PropsNode extension
no setter - previousSibling → Node?
-
Available on Node, provided by the PropsNode extension
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textContent ↔ String?
-
Available on Node, provided by the PropsNode extension
getter/setter pair
Methods
-
addEventListener(
String type, EventListener? callback, [dynamic options]) → void -
Available on EventTarget, provided by the PropsEventTarget extension
-
append(
[dynamic nodes1, dynamic nodes2, dynamic nodes3]) → void -
Available on ParentNode, provided by the PropsParentNode extension
-
appendChild(
Node node) → Node -
cloneNode(
[bool? deep = false]) → Node -
compareDocumentPosition(
Node other) → int -
contains(
Node? other) → bool -
dispatchEvent(
Event event) → bool -
Available on EventTarget, provided by the PropsEventTarget extension
-
getElementById(
String elementId) → Element? -
Available on NonElementParentNode, provided by the PropsNonElementParentNode extension
-
getRootNode(
[GetRootNodeOptions? options]) → Node -
hasChildNodes(
) → bool -
insertBefore(
Node node, Node? child) → Node -
isDefaultNamespace(
String? namespace) → bool -
isEqualNode(
Node? otherNode) → bool -
isSameNode(
Node? otherNode) → bool -
lookupNamespaceURI(
String? prefix) → String? -
lookupPrefix(
String? namespace) → String? -
normalize(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prepend(
[dynamic nodes1, dynamic nodes2, dynamic nodes3]) → void -
Available on ParentNode, provided by the PropsParentNode extension
-
querySelector(
String selectors) → Element? -
Available on ParentNode, provided by the PropsParentNode extension
-
querySelectorAll(
String selectors) → NodeList -
Available on ParentNode, provided by the PropsParentNode extension
-
removeChild(
Node child) → Node -
removeEventListener(
String type, EventListener? callback, [dynamic options]) → void -
Available on EventTarget, provided by the PropsEventTarget extension
-
replaceChild(
Node node, Node child) → Node -
replaceChildren(
[dynamic nodes1, dynamic nodes2, dynamic nodes3]) → void -
Available on ParentNode, provided by the PropsParentNode extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited