id="..." links won't open <details> disclosure elements
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: patrick, Unassigned)
Details
Attachments
(1 file, 1 obsolete file)
389 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110.0
Steps to reproduce:
link to
example.html#my_target
with
<details>
<summary>Topic</summary>
<p id="my_target">Details on topic.</p>
</details>
Actual results:
The details element did not open.
Expected results:
The details element should open (it does on chromium based browsers).
Workaround:
https://stackoverflow.com/questions/37033406/automatically-open-details-element-on-id-call
I don’t see any advantage in the details element not opening. Furthermore FF opens details elements when searching for strings so why not on #id links?
Hello, thank you for the bug report!
Managed to reproduce the issue on:
- Firefox 111.0;
- Nightly 112.0a1;
Tested and reproduced on:
- macOS 12;
- Windows 11;
Changing the Component to "General". Please change if there's a better fit, thank you.
Setting as NEW.
Updated•3 years ago
|
Comment 2•3 years ago
|
||
Moving to Core:General but I think this belongs somewhere in DOM
Comment 3•3 years ago
|
||
It looks like there's a WPT for this behavior: testing/web-platform/tests/html/semantics/interactive-elements/the-details-element/auto-expand-details-element-fragment.html
Comment 4•3 years ago
|
||
This looks like the Chromium feature page for this, with links to the relevant specs: https://chromestatus.com/feature/5032469667512320
Updated•2 years ago
|
Comment 6•6 months ago
|
||
https://wpt.fyi/results/html/semantics/interactive-elements/the-details-element/auto-expand-details-element-fragment.html?label=experimental&label=master&aligned claims Firefox passes. Is this issue obsolete and already fixed somewhere else?
Comment 7•6 months ago
|
||
Thanks for pointing this out. Yes, auto-expanding details have been implemented recently in bug 1724299. As of today, this only works in Nightly, but it will be available in Release 139.
Description
•