[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 14:13:28 PST 2017


--- Comment #19 from Nan Wang <n_wang at apple.com> ---
(In reply to comment #17)
> (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.

I think in our case we want case sensitive matched result. But I'll take a look at the findPlainText function.

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/50ba8345/attachment.html>

More information about the webkit-unassigned mailing list