The problem with that version of the code is that, at least in Firefox, the spoiler can be shown and hidden once and then is disabled entirely.

If this isn't something people think is important, that's fine with me, but I think it might help. And I know that even with a standard, it would take quite a bit of time to get everything already existing updated. At least we could do it for new things?