Created attachment 395760 [details] testcase Steps to reproduce: 1. open the attached testcase on Safari on iOS 2. tap on the box (and see the soft keyboard to show up) 3. switch to Japanese keyboard 4. input several characters from the keyboard without picking anything on the word selection bar 5. click "Done" button on top of the soft keyboard At that point, you should see the text box removed from the page. Expected result: The selection info text should say there is no selection (indicating selection.rangeCount is zero). Actual result: The selection info text says IndexSizeError (indicating selection.rangeCount is one but getRangeAt(0) throws).
<rdar://problem/61485999>