Skip to content

Raw text is still visible when its parent details element is closed #20

Description

@emlowry

I've only tested this in Edge and IE, but using this polyfill turns this:

<details open>
    <summary>Open details</summary>
    Show raw text<span> and text in elements</span>.
</details>
<details>
    <summary>Closed details</summary>
    Show raw text<span> and text in elements</span>.
</details>
Text outside the details.

into this:

▼Open details
Show raw text and text in elements.
►Closed details
Show raw text.
Text outside the details.

instead of the expected:

▼Open details
Show raw text and text in elements.
►Closed details
Text outside the details.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions