Find in page feature doesn't work well with exclusive <details> elements
Categories
(Toolkit :: Find Toolbar, defect)
Tracking
()
People
(Reporter: rolf.smeds, Unassigned)
Details
Steps to reproduce:
The "Find in page" feature doesn't work correctly with the "exclusive accordion" behavior in the <details> element (as implemented in bug 1856460).
When the same name attribute is used on multiple <details> elements, they behave like an accordion: only one can be open at a time; opening another automatically closes the others.
The "Find in page" feature in Firefox, as in all other browsers, automatically open <details> elements containing the search term.
This combination seems to be broken in Firefox.
Codepen example of an exclusive accordion: https://codepen.io/rsmeds/pen/xbGmMqo?editors=1010
To test, open "Find in page" and search for "Foo".
Actual results:
Firefox apparently tries to immediately open ALL <details> elements on the page can contain the search term. Because of the exclusive accordion behavior, however, only one can be open at a time, so each one is immediately closed again, with the result that only the LAST instance remains open. You actually cannot even reach the matches inside the other details by clicking through the search results.
Expected results:
In Chrome and Safari, <details> containing the term opened one at a time, as you traverse through search results, instead of trying to open all of them simultaneously.
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox for Android::General' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
| Reporter | ||
Comment 2•1 year ago
|
||
This is not specific to Android. Behavior observed in FF for macOS
Updated•1 year ago
|
Comment 3•1 year ago
|
||
The severity field is not set for this bug.
:enndeakin, could you have a look please?
For more information, please visit BugBot documentation.
This seems to be a duplicate of bug 1970909.
Comment 5•1 year ago
|
||
Could be, or at least it’s similar. I’ll take a look. Thanks for reporting!
Updated•10 months ago
|
Description
•