Re: Styling of search/find-in-page results

Hi!

On Fri, Apr 4, 2014 at 7:31 AM, Zack Weinberg <zackw@panix.com> wrote:
> If the PDF.js team would take the time to write up their use cases in
> detail--both what is needed, and how it would most conveniently work--that
> would be very helpful to the cause of getting ::selection and friends
> specified. Right now we don't have a good sense of how it _should_ work.

PDF.js is just an example and current approach is more or less a
workaround for lack of better support. So whole idea of having a
hidden text layer you can search over.

The main point is that control and style of both selection and search
should be possible for web apps to be able to integrate with content
they are displaying (and also modifying, one issue is also that if you
do a search currently and then app changes DOM, it is unspecified what
browser should do: cancel search? redo it? should it maybe use some
other style for invalided search elements which are not in the page
anymore, but they were?).


Mitar

-- 
http://mitar.tnode.com/
https://twitter.com/mitar_m

Received on Saturday, 10 May 2014 09:12:05 UTC