[Webkit-unassigned] [Bug 166955] AX: WKContentView needs to implement UITextInput methods to make speak selection highlighting work

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 25 13:28:24 PST 2017


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

--- Comment #17 from Ryosuke Niwa <rniwa at webkit.org> ---
(In reply to comment #15)
> (In reply to comment #14)
> > > e.g. we want to search for the second "the" in "the car is the fastest in the world" at offset 12 (at "h" of the second "the"), findPlainText might return the range of the first or third "the" depending on the range and direction we passed in.
> > 
> > What's the desired behavior then?
> 
> We want it to return the range of the second "the", from offset 11 to 14.
> This is the closest match to the offset we passed in.

Ah, in that case, we should probably add a new variant of findPlainText that does this instead of implementing a brand new text search algorithm in WK2 layer. The code you're adding doesn't take care of case differences, code point equivalency, etc... that we've  fixed over many years of the development of WebKit.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170125/45713ef9/attachment.html>


More information about the webkit-unassigned mailing list