[Webkit-unassigned] [Bug 140210] Provide public WKWebView API for find-in-page
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 29 21:17:41 PST 2018
https://bugs.webkit.org/show_bug.cgi?id=140210
--- Comment #7 from Frédéric Wang (:fredw) <fred.wang at free.fr> ---
(In reply to thegreenfrog from comment #6)
> Hi Frederic!
>
> I tried out window.find and only was able to get it to highlight the results
> using document.execCommand('HiliteColor', false, 'yellow'). But I was unable
> to get it to scroll to results outside of the screen. So my question is
> two-fold:
>
> 1. Does window.find actually scroll & highlight, or is that a safari
> addition on top?
> 2. Are you aware of helpful ways to scroll to a given selected content
> (which is what window.find does)
Regarding 1. window.find or document.execCommand('FindString') are nonstandard. Safari does scroll/highlight but I don't know for other browsers. Discussion is at https://github.com/whatwg/html/issues/3539
Regarding 2., window.find should do the scroll, if it does not it is a bug :-) I already mentioned bug 163911 on mobile safari.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20181130/6bc3cb2b/attachment.html>
More information about the webkit-unassigned
mailing list