Skip to main content


This is an interesting #HTML proposal from @Seirdy

Should there be a `<spoiler>` element?

seirdy.one/posts/2023/11/12/sp…

My heart says yes. HTML should reflect what people are actually doing on the web. How they write. The features they invent.

But my head says it is a duplicate of `<details>` albeit non-block level.

in reply to Terence Eden

100% yes. The greatest failure of HTML is that it never followed behind real world usage, codifying common patterns. Even JS did this after letting jquery lead the way.
in reply to 🖕

FWIW the ticket is here: github.com/whatwg/html/issues/…
in reply to Terence Eden

A related Open UI issue: github.com/openui/open-ui/issu…

There are many nuances to spoiler-type things, aside from the inline-block level difference from details.