RESOLVED DUPLICATE of bug 228843 290170
Open details tag if summary is targeted by ID
https://bugs.webkit.org/show_bug.cgi?id=290170
Summary Open details tag if summary is targeted by ID
nils.reibold
Reported 2025-03-21 05:12:40 PDT
In chrome if you have a closed details tag and your url anchor targets the ID of its summary element, the details tag will be opened (on page load / hashchange). It would be nice to see this behaviour in Safari as well. Using: test.html#test <details> <summary id="test">Test open by ID</summary> <div> I will be open </div> </details> <details> <summary>Test closed</summary> <div> I will be closed </div> </details>
Attachments
Radar WebKit Bug Importer
Comment 1 2025-03-28 05:13:18 PDT
Tim Nguyen (:ntim)
Comment 2 2025-03-28 11:51:53 PDT
This is basically the feature that bug 228843 implements. *** This bug has been marked as a duplicate of bug 228843 ***
Note You need to log in before you can comment on or make changes to this bug.