Several SE sites, including Science Fiction & Fantasy SE, Movies & TV SE and Literature SE, support the tag >! for spoilers. This markup hides the text following the spoiler tag unless the user hovers the mouse pointer over the spoiler area. Unfortunately, if you browse websites by keyboard (e.g. due to mobility impairment), the content of the spoiler cannot be made visible.
The spoilers are not part of the focusable elements on the page, so you cannot reach them by using the TAB key. (The TAB key allows you to reach links, form elements and a few other focusable elements.)
As far as I can tell, two changes are required:
- Making the spoiler focusable. This can be done by adding the attribute
tabindex="0"to each blockquote element that is used for spoilers (<blockquote class="spoiler" tabindex="0">). - Making the text appear on
focus, not just onhover. The site's CSS code contains the selector.spoiler:not(:hover), but I have not yet figured out what CSS code needs to be added to make it work forfocus.
Note: As pointed out in Spoiler syntax should generate <div>, not <blockquote>, <blockquote> is not the best HTML element for spoilers.
