Opened 10 years ago
Closed 10 years ago
#12262 closed New Feature (wontfix)
Test and improve getSelectedText
Reported by: | Piotr Jasiun | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
Since drag and drop and copy/cut and paste use not only selection.getSelectedHtml
but also selection.getSelectedText
it would be good to create better tests for it (now there are only 2) and improve that method if necessary.
Maybe getSelectedText
could be based on getSelectedHtml
.
The method uses native methods, so there's not much we can do about it. If any of the native methods does not work well or browsers are incompatible between themselves, we have to accept that. Existing tests are ok.