FYI You can nest <details> tags within <ul> and vice versa to create a collapsible tree menu without JS or CSS

E.G.
<details>
<summary>Root</summary>
<ul>
<li>
<details>
<summary>Sub</summary>
<ul><li>etc...</li></ul>
</details>
</li>
</ul>
</details>

@dredmorbius For a little bit. It's part of the HTML5 spec now and most browsers, including mobiles support it

developer.mozilla.org/en-US/do

I'm using it to write a little editor plugin for my blog (also because I'm extremely lazy :P)

Sign in to participate in the conversation
Toot.Cat

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!