public replaceWholeText(content as String) as Text throws DOMException
Replaces all logically adjacent text with the given content.
Replacement text node, or null when content is empty.
text.replaceWholeText("new text")