Exclusive accordion #176
LeaVerou
started this conversation in
State of HTML Features
Replies: 1 comment 3 replies
-
Duplicate elements with the same ID's seem to be against the HTML spec. A fieldset like container seems to be a better way to approach this. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Group
<details>
elements so that only up to one in the group can be open at a time.Code sample
MDN URL:
No response
Specification URL:
whatwg/html#9400
Any other links?
How stable is this feature?
Future (No implementations yet)
Type of feature
HTML attribute
What focus area does this feature fall under?
Interactivity
Details
The
name
attribute groups creates groups of<details>
elements, where opening one closes the others, allowing easier implementation of accordions.Beta Was this translation helpful? Give feedback.
All reactions