NEW 13860
Can't use selection.modify() to move/extend a non-editable selection
https://bugs.webkit.org/show_bug.cgi?id=13860
Summary Can't use selection.modify() to move/extend a non-editable selection
Sridhar Gurivireddy
Reported 2007-05-24 10:25:26 PDT
selection.modify() does not work when "move" is specified as first argument. var selection = window.getSelection(); selection.modify("move", "forward", "sentence"); This works in Firefox
Attachments
Test file (2.68 KB, text/html)
2007-05-29 11:12 PDT, Sridhar Gurivireddy
no flags
Justin Garcia
Comment 1 2007-05-24 11:19:08 PDT
Selection::modify is Safari only, FF doesn't support it afaict. I'm not sure why you'd be having problems with selection.modify("move", "forward", "sentence"), can you include the entire test case?
Sridhar Gurivireddy
Comment 2 2007-05-29 11:12:19 PDT
Created attachment 14769 [details] Test file Please use the attached file
Justin Garcia
Comment 3 2007-05-30 16:38:53 PDT
I see. The test tries to modify a non-editable selection.
Alexey Proskuryakov
Comment 4 2007-10-05 04:58:06 PDT
Marking confirmed per the above comment (there doesn't seem to be any reason to restrict selection.modify() to editable content).
Note You need to log in before you can comment on or make changes to this bug.