normalize the missing start/end locations of nodes, so as to eliminate things appearing at random places in HTML