This tests to make sure that a selection inside a textarea is updated when the textarea is removed from the document.