replaceWith method

void replaceWith(
  1. JSAny nodes
)

The replaceWith() method of the CharacterData interface replaces this node in the children list of its parent with a set of Node objects or string.

Strings are inserted as Text nodes; the string is being passed as argument to the Text/Text constructor.

Implementation

external void replaceWith(JSAny nodes);