3 ms·You definitely want to use a library that wraps getSelection() and evens out cross-browser inconsistencies.by gkop 11y agoYou definitely want to use a library that wraps getSelection() and evens out cross-browser inconsistencies.