replaceChildren method
The DocumentFragment.replaceChildren()
method replaces the
existing children of a DocumentFragment
with a specified new set of
children. These
can be string or Node objects.
Implementation
external void replaceChildren(JSAny nodes);