getSelection().setBaseAndExtent(element, 0, element, -1) causes WebKit to hang.
Created attachment 14558 [details] Test case (will hang)
<rdar://problem/5206890>
r21542