html-dom icon indicating copy to clipboard operation
html-dom copied to clipboard

Use replaceChildren() to clear child nodes

Open ziadoz opened this issue 1 year ago • 0 comments

The replaceChildren() node with no parameters can be used to quickly clear a node's children:

https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceChildren#emptying_a_node

ziadoz avatar Jun 06 '24 13:06 ziadoz