ParentNode
interface ParentNode (View source)
This is the modern, spec-compliant equivalent of DOMParentNode.
Methods
Returns the first element that matches the CSS selectors
Returns a collection of elements that match the CSS selectors
Details
void
append(Node|string ...$nodes)
Appends nodes after the last child node
Appends one or many nodes to the list of children after the last child node.
void
prepend(Node|string ...$nodes)
Prepends nodes before the first child node
Prepends one or many nodes to the list of children before the first child node.
void
replaceChildren(Node|string ...$nodes)
Replace children in node
Element|null
querySelector(string $selectors)
Returns the first element that matches the CSS selectors
Returns the first element that matches the CSS selectors specified in selectors.
NodeList
querySelectorAll(string $selectors)
Returns a collection of elements that match the CSS selectors
Returns a collection of elements that match the CSS selectors specified in selectors.