Closed Bug 1820528 Opened 3 years ago Closed 6 months ago

id="..." links won't open <details> disclosure elements

Categories

(Core :: DOM: Core & HTML, defect)

Firefox 110
defect

Tracking

()

RESOLVED DUPLICATE of bug 1724299
Tracking Status
firefox111 --- affected
firefox112 --- affected

People

(Reporter: patrick, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

389 bytes, text/html
Details
Attached file example.html

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.

Status: UNCONFIRMED → NEW
Component: Untriaged → General
Ever confirmed: true
Product: Firefox → Core

Moving to Core:General but I think this belongs somewhere in DOM

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

Component: General → DOM: Core & HTML

This looks like the Chromium feature page for this, with links to the relevant specs: https://chromestatus.com/feature/5032469667512320

Severity: -- → S3
Attachment #9385143 - Attachment is obsolete: true

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.

Status: NEW → RESOLVED
Closed: 6 months ago
Duplicate of bug: 1724299
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: