DocumentFragment
Generated from idl/dom.webidl when the site was built at 7aa23e2.
DocumentFragment is an interface in idl/dom.webidl, inheriting Node, exposed in Window. It includes NonElementParentNode, ParentNode. What it does is on MDN; this page says what niso has of it.
Status
Section titled “Status”The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).
| Feature | On the web | In niso | Members |
|---|---|---|---|
| DOM | Widely available | No WPT tests WPT maps no test to it | 12 |
| moveBefore() | Limited availability | Partial 42% 72 of 169 subtests pass | 1 |
Members
Section titled “Members”constructor
Section titled “constructor”constructor();int32_t niso_document_fragment_new(niso_dom* dom, niso_handle* out);getElementById()
Section titled “getElementById()”Element? getElementById(DOMString elementId);int32_t niso_non_element_parent_node_get_element_by_id(niso_dom* dom, niso_handle self, const char* element_id, size_t element_id_len, niso_handle* out);children
Section titled “children”readonly attribute HTMLCollection children;int32_t niso_parent_node_get_children(niso_dom* dom, niso_handle self, niso_handles* out);firstElementChild
Section titled “firstElementChild”readonly attribute Element? firstElementChild;int32_t niso_parent_node_get_first_element_child(niso_dom* dom, niso_handle self, niso_handle* out);lastElementChild
Section titled “lastElementChild”readonly attribute Element? lastElementChild;int32_t niso_parent_node_get_last_element_child(niso_dom* dom, niso_handle self, niso_handle* out);childElementCount
Section titled “childElementCount”readonly attribute unsigned long childElementCount;int32_t niso_parent_node_get_child_element_count(niso_dom* dom, niso_handle self, uint32_t* out);prepend()
Section titled “prepend()”undefined prepend((Node or DOMString)... nodes);int32_t niso_parent_node_prepend(niso_dom* dom, niso_handle self, const niso_node_or_string* nodes, size_t nodes_len);append()
Section titled “append()”undefined append((Node or DOMString)... nodes);int32_t niso_parent_node_append(niso_dom* dom, niso_handle self, const niso_node_or_string* nodes, size_t nodes_len);replaceChildren()
Section titled “replaceChildren()”undefined replaceChildren((Node or DOMString)... nodes);int32_t niso_parent_node_replace_children(niso_dom* dom, niso_handle self, const niso_node_or_string* nodes, size_t nodes_len);moveBefore()
Section titled “moveBefore()”undefined moveBefore(Node node, Node? child);int32_t niso_parent_node_move_before(niso_dom* dom, niso_handle self, niso_handle node, niso_handle child);querySelector()
Section titled “querySelector()”Element? querySelector(DOMString selectors);int32_t niso_parent_node_query_selector(niso_dom* dom, niso_handle self, const char* selectors, size_t selectors_len, niso_handle* out);querySelectorAll()
Section titled “querySelectorAll()”NodeList querySelectorAll(DOMString selectors);int32_t niso_parent_node_query_selector_all(niso_dom* dom, niso_handle self, const char* selectors, size_t selectors_len, niso_handles* out);