Merge adjacent non-textnode with identical tagnames