The behavior that Selection.addRange() merges existing Range and the specified Range was removed.
#make sure to call selection.removeAllRanges(), then call selection.addRange(range)
selection = window.getSelection();
range = document.createRange();
range.selectNodeContents(elem);
selection.removeAllRanges();
selection.addRange(range);