Skip to content

proposal: open <details> when the user navigates to an ID inside it #4051

Description

@prlbr

Can we make details open automatically when a user navigates to an ID inside it?

Consider the following code on a page https://example.org/:

<details>
<summary>About the author</summary>
<p id="pro"></p>
<p></p>
<p id="family"></p>
</details>

On another page there’s a link that points to https://example.org/#family. Currently, that link won’t lead a user who clicks on the link to the paragraph with the id="family", although that would be helpful and I can’t imagine – from an author’s or user’s perspective – why it should not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    addition/proposalNew features or enhancementsneeds implementer interestMoving the issue forward requires implementers to express interest

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions