DOMParentNode
interface DOMParentNode (View source)
Properties
DOMElement|null read-only | $firstElementChild | ||
DOMElement|null read-only | $lastElementChild | ||
int read-only | $childElementCount |
Methods
Details
void
append(DOMNode|string|null ...$nodes)
Since: 8.0
Appends one or many nodes to the list of children behind the last child node.
void
prepend(DOMNode|string|null ...$nodes)
Since: 8.0
Prepends one or many nodes to the list of children before the first child node.
void
replaceChildren(...$nodes)
Since: 8.3
No description