title: window.getSelection get the right selection in textarea
body: <p>in firefox and chrome window.getSelection is used to get the current selection in document,but is the current selection is in a textarea,the window.getSelection didn't return the selection,but the textarea itself.
  So,how to the right selection in firefox and chrome?</p>