@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="DocumentFragment")
public class DocumentFragment
extends Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, nodeValue, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, textContent| Constructor and Description |
|---|
DocumentFragment()
The DocumentFragment() constructor returns a new, empty DocumentFragment object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(Node... nodes)
The ParentNode.append() method inserts a set of Node objects or DOMString objects after the last child of the ParentNode.
|
void |
append(java.lang.String... nodes)
The ParentNode.append() method inserts a set of Node objects or DOMString objects after the last child of the ParentNode.
|
int |
childElementCount()
The ParentNode.childElementCount read-only property returns an unsigned long representing the number of child elements of the given element.
|
HTMLCollection |
children()
The ParentNode property children is a read-only property that returns a live HTMLCollection which contains all of the child elements of the node upon which it was called.
|
Element |
firstElementChild()
The ParentNode.firstElementChild read-only property returns the object's first child Element, or null if there are no child elements.
|
Element |
getElementById(java.lang.String elementId) |
Element |
lastElementChild()
The ParentNode.lastElementChild read-only property returns the object's last child Element or null if there are no child elements.
|
void |
prepend(Node... nodes)
The ParentNode.prepend() method inserts a set of Node objects or DOMString objects before the first child of the ParentNode.
|
void |
prepend(java.lang.String... nodes)
The ParentNode.prepend() method inserts a set of Node objects or DOMString objects before the first child of the ParentNode.
|
Element |
querySelector(java.lang.String selectors)
The DocumentFragment.querySelector() method returns the first element, or null if no matches are found, within the DocumentFragment (using depth-first pre-order traversal of the document's nodes) that matches the specified group of selectors.
|
NodeList |
querySelectorAll(java.lang.String selectors)
The DocumentFragment.querySelectorAll() method returns a NodeList of elements within the DocumentFragment (using depth-first pre-order traversal of the document's nodes) that matches the specified group of selectors.
|
void |
replaceChildren(Node... nodes)
The ParentNode.replaceChildren() method replaces the existing children of a Node with a specified new set of children.
|
void |
replaceChildren(java.lang.String... nodes)
The ParentNode.replaceChildren() method replaces the existing children of a Node with a specified new set of children.
|
appendChild, baseURI, childNodes, cloneNode, cloneNode, compareDocumentPosition, contains, firstChild, getRootNode, getRootNode, hasChildNodes, insertBefore, isConnected, isDefaultNamespace, isEqualNode, isSameNode, lastChild, lookupNamespaceURI, lookupPrefix, nextSibling, nodeName, nodeType, normalize, ownerDocument, parentElement, parentNode, previousSibling, removeChild, replaceChildaddEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListenerassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, valuespublic DocumentFragment()
@JsProperty(name="childElementCount") public int childElementCount()
@JsProperty(name="children") @Nonnull public HTMLCollection children()
@JsProperty(name="firstElementChild") @Nullable public Element firstElementChild()
@JsProperty(name="lastElementChild") @Nullable public Element lastElementChild()
public void append(@Nonnull
Node... nodes)
public void append(@Nonnull
java.lang.String... nodes)
public void prepend(@Nonnull
Node... nodes)
public void prepend(@Nonnull
java.lang.String... nodes)
@Nullable public Element querySelector(@Nonnull java.lang.String selectors)
@Nonnull public NodeList querySelectorAll(@Nonnull java.lang.String selectors)
public void replaceChildren(@Nonnull
Node... nodes)
public void replaceChildren(@Nonnull
java.lang.String... nodes)
@Nullable public Element getElementById(@Nonnull java.lang.String elementId)