public normalize() as Void:
Merges adjacent Text nodes and removes empty Text nodes recursively. CDATA boundaries, retained node identities and the live childNodes view are preserved. Text assembly and child compaction are linear per parent.
root.appendChild(document.createTextNode("a"))
root.appendChild(document.createTextNode("b"))
root.normalize()
assert root.firstChild.nodeValue == "ab"