Closed Bug 1881552 Opened 7 months ago Closed 7 months ago

Make find-in-page automatically un-collapse <details> sections with a keyword match

Categories

(Core :: Find Backend, defect)

Firefox 122
defect

Tracking

()

RESOLVED DUPLICATE of bug 1724299

People

(Reporter: olivier.grisel, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:122.0) Gecko/20100101 Firefox/122.0

Steps to reproduce:

  • Open a page with the following HTML content:

<details><summary>Open for details</summary><p>Some text with a specific word of interest such as Matuzovic.</p></details>

This is the case on this demo page: https://cdpn.io/pen/debug/yLQbVYN setup in place to illustrate this note: https://www.matuzo.at/blog/2023/details-find-in-page

  • Use the find-in-page feature of firefox (e.g. with Ctrl-F or Command-F) and type "Matuzovic"

Actual results:

Nothing. There is no match reported by firefox.

Expected results:

I would have expected the collapsed details section to open / un-collapse automatically and firefox to highlight the match.

I think it would greatly improve accessibility and make firefox behave consistently with Chrome and Edge.

See also another discussion of this problem here:

https://www.scottohara.me/blog/2022/09/12/details-summary.html#special-find-in-page-behavior

This problem as also originally discussed here: https://bugzilla.mozilla.org/show_bug.cgi?id=591737#c83

Personally I qualified this issue as a defect (from an accessibility point of view) but I agree this is debatable and feel free to re-qualify as a request for enhancement.

Note: I thought there was an open issue about this but I failed to find it by using the bugzilla search engine (I also tried with google).

Actually I found it in my list of voted issues:

https://bugzilla.mozilla.org/show_bug.cgi?id=1724299

This report has more details but the other report is older and has other people already added comments.

Component: Untriaged → Find Backend
Product: Firefox → Core
Status: UNCONFIRMED → RESOLVED
Closed: 7 months ago
Duplicate of bug: 1724299
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.