3 ms·
Seems an overly cautious warning. The spec seems to indicate that the only "semantic" meaning to these elements is "I have content or controls I wish to show/hi
by WorldMaker 6y ago
Seems an overly cautious warning. The spec seems to indicate that the only "semantic" meaning to these elements is "I have content or controls I wish to show/hide" and the accessibility guarantee is "allow the user to show/hide details". It sounds perfectly cromulent use.
Could even default the details to shown with the "open" attribute and still meet the spec-detailed description as the affordance there is that it can then be hidden.
DETAILS spec: https://html.spec.whatwg.org/multipage/interactive-elements.html#the-details-element https://html.spec.whatwg.org/multipage/interactive-elements....