The clearChildNodes()
method removes all child nodes from the target node.
It serves as an object-oriented equivalent to setting innerHTML = ''
, providing a convenient way to clear a node's content while keeping the node itself intact for further manipulation.
Description
public AbstractNode::clearChildNodes(): void
Parameters
None
Return Value
None
Exceptions
None