Find in page does not highlight results cotaining both hyperlink and normal text

NEW
Unassigned

Status

()

P3
normal
2 years ago
3 months ago

People

(Reporter: SimonB, Unassigned)

Tracking

unspecified
All
iOS

Firefox Tracking Flags

(fxios-v6.0 affected, fxios-v7.0 affected, fxios+)

Details

(Reporter)

Description

2 years ago
Build: 6.0b4
Device: iPad Pro 
iOS: 9.3.5

Steps to reproduce:
1. Go to https://en.wikipedia.org/wiki/Wiki
2. Open the menu 
3. Tap Find in page
4. Type 'using wiki software'

Actual result:
- The words are not found in the page and do not appear highlighted. When typing only words that contain a hyperlink, they are found and highlighted. When typing combine words that contain/don't contain a link, they are not not found in page and do not appear highlighted. 

Expected results:
- The words should be found and highlighted. 

Note:
- The same issue is not reproducible in Safari.

See video of the issue: 
https://www.youtube.com/watch?v=Dwpif4YCsLA
tracking-fxios: ? → +
Priority: -- → P3
I looked into this a bit and found it is because we are inserting a span element into the page for each found result. We cannot wrap the span element across elements, so we don't search across them. This strategy opens up problems if there is specific styling on the page that applies to spans. Safari seems to use an overlay of sorts, as do we on desktop, perhaps we should consider that type of strategy instead, though it would be a fairly large overhaul.
You need to log in before you can comment on or make changes to this bug.