Node.normalize()
This method puts the given node and all of its sub-tree into a normalized form. A normalized sub-tree has no empty text nodes and no adjacent text nodes. (cherry picked from commit 0a0651f34ea927a0ca44dc5d2c7786f3dcf8da25)