Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #38634
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: alternate way? |
| Date | 2020-08-04 04:38 +0200 |
| Message-ID | <hos01gFabi0U1@mid.individual.net> (permalink) |
| References | (2 earlier) <wNvSG.170651$AN2.151955@fx46.iad> <1j5tkprrh925z$.1olio0ank8ocm$.dlg@40tude.net> <IwGSG.199816$eN2.192008@fx47.iad> <e4cyfrw6i6pb.xgneuwo3ixzf$.dlg@40tude.net> <548c1bdc-2de3-4911-8412-c0244e5725d9n@googlegroups.com> |
Michael Haufe (TNO): > On Saturday, July 25, 2020 at 8:06:08 AM UTC-5, JJ wrote: >> On Fri, 24 Jul 2020 12:21:03 -0700, Robert Baer wrote: >>> JJ wrote: >>>> >>>> If you're trying to highlight words from a given keyword, scroll the >>>> matching keyword into view, it has to be done manually via JS to mimic the >>>> browser's Find feature. >>>> >>> So...even using CSS as a helper, i am SOL? >> You can, but keep in mind that CSS can only be applied to elements. Not >> text. So, if you want to highlight a word which is part of a text in a text >> node, that word must be enclosed within an element first, before you can >> actually style it. > > Not true in the modern day: > > <https://developer.mozilla.org/en-US/docs/Web/CSS/::selection> CSS will only be applied to the text which *is* *selected* and not *to* select it. -- Arno Welzel https://arnowelzel.de
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: alternate way? Robert Baer <robertbaer@localnet.com> - 2020-07-24 00:08 -0700
Re: alternate way? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2020-07-24 09:45 +0200
Re: alternate way? Robert Baer <robertbaer@localnet.com> - 2020-07-24 12:16 -0700
Re: alternate way? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2020-07-25 14:42 +0200
Re: alternate way? Richard Damon <Richard@Damon-Family.org> - 2020-07-25 20:20 -0400
Re: alternate way? Robert Baer <robertbaer@localnet.com> - 2020-08-03 15:01 -0700
Re: alternate way? JJ <jj4public@vfemail.net> - 2020-07-24 19:27 +0700
Re: alternate way? Robert Baer <robertbaer@localnet.com> - 2020-07-24 12:21 -0700
Re: alternate way? JJ <jj4public@vfemail.net> - 2020-07-25 20:06 +0700
Re: alternate way? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-07-25 11:29 -0700
Re: alternate way? JJ <jj4public@vfemail.net> - 2020-07-26 20:42 +0700
Re: alternate way? Arno Welzel <usenet@arnowelzel.de> - 2020-08-04 04:38 +0200
Re: alternate way? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-08-03 19:43 -0700
Re: alternate way? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-07-25 00:57 +0200
csiph-web