Find function hits on text across <br> boundary when followed by <strong>
Categories
(Core :: Find Backend, defect)
Tracking
()
People
(Reporter: digikata, Assigned: emilio)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0
Steps to reproduce:
Searched for a string "CA" for the state on https://www.debian.org/consultants/#US, and found lots of hits on address lines that ended with "C", and a new line starting with a <strong> emphasized "Address"
Actual results:
find for "CA" had lots of hits on address lines that ended with "C", and a new line starting with a <strong> emphasized "Address"
Expected results:
File attached, but searching for "CA"
wordC<br> Address
doesn't get found while
wordC<br> <strong>Address</strong>
does get found.
It seems like at least one is unintended. Probably neither case should be found.
Comment 1•4 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 2•4 years ago
|
||
STR
- Open attached
- Find in page with "ac"
Expected results: not found
Regression window:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=6272dd5e7417adf68255abfb1d691a36e5a2d6e8&tochange=3931f461c8e8668a264d52b51a4524aac39a7a16
Assignee | ||
Comment 3•4 years ago
|
||
Yeah, I think this is a result of those patches, though apparently it used to work mostly by chance. In the <strong>
case layout manages to suppress the whitespace that goes in between the <br>
and the <strong>
.
But this is an issue without that: data:text/html,a<br>b
. Anyhow happy to poke at it.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 4•4 years ago
|
||
Wrote this on top of bug 1627643. Should be easy to rebase if needed,
though.
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ebb5b2a2d790 Make sure <br> forces a break even if there's no whitespace in between. r=jfkthame
Comment 6•4 years ago
|
||
bugherder |
Updated•4 years ago
|
Description
•