This is your irregular reminder that the <details> tag exists in HTML and you should never have to implement a spoiler/details box in JavaScript ever.

>checks browser compat
dammit IE you've thwarted my plans once again

Is it widely supported or one of those chrome-only things?

@DHeadshot @kalium it's part of the HTML5 spec, so any modern browser worth its salt handles it, plus it fails pretty gracefully, good for screen readers.

Sign in to participate in the conversation

A mastodon instance made for the #xkcd community on slashnet