When trying to restore the selection after merging cells in a row in IE9-10, it wasn't working because IE9-10 were throwing an error when trying to remove ranges from the selection after applying the manipulations to the row cells to make the merge. To fix this issue, I simply added this line to remove the ranges from the selection immediately after the nodes have been gathered from the selection instead of waiting until after the manipulations to the row cells had been applied because IE9-10 don't throw an error when doing it that way.