Cross-browser normalization of DOM Range start and end containers