Skip to content

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.

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
constructor
constructor();
int32_t niso_document_fragment_new(niso_dom* dom, niso_handle* out);
operation from NonElementParentNode
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);
attribute from ParentNode
readonly attribute HTMLCollection children;
int32_t niso_parent_node_get_children(niso_dom* dom, niso_handle self, niso_handles* out);
attribute from ParentNode
readonly attribute Element? firstElementChild;
int32_t niso_parent_node_get_first_element_child(niso_dom* dom, niso_handle self, niso_handle* out);
attribute from ParentNode
readonly attribute Element? lastElementChild;
int32_t niso_parent_node_get_last_element_child(niso_dom* dom, niso_handle self, niso_handle* out);
attribute from ParentNode
readonly attribute unsigned long childElementCount;
int32_t niso_parent_node_get_child_element_count(niso_dom* dom, niso_handle self, uint32_t* out);
operation from ParentNode
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);
operation from ParentNode
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);
operation from ParentNode
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);
operation moveBefore(): Partial 42% from ParentNode
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);
operation from ParentNode
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);
operation from ParentNode
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);