[Webkit-unassigned] [Bug 27632] Expose text segmentation through JavaScript

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 24 10:46:10 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=27632





--- Comment #2 from Alexey Proskuryakov <ap at webkit.org>  2009-07-24 10:46:09 PDT ---
Note that double-clicking for word selection doesn't currently use
TextBreakingIterator internally. The results should be pretty similar in most
cases though.

> document.wordRangeFromPoint(int x, int y)

Document is not really appropriate to host this, because documents are not
necessarily displayed on screen. Extending a DOMRange to word boundaries would
be more in line with other APIs.

Another option would be to expose DOMSelection objects that are not tied to
selection as visible to the user - this interface has a modify() method taking
a granularity.

Finally, it should be possible to make this work reasonably well with current
WebKit by using DOMSelection.modify, and then restoring the original selection.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list