Handle the case where a node has text children that all have the same name.