Update browser detection for IE11. Save and restore text selection.