Skip to content

Commit

Permalink
Forbid nesting <details> in the same exclusive accordion
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaron authored Dec 20, 2023
1 parent f33d8b0 commit 8027fc5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -60194,6 +60194,9 @@ interface <dfn interface>HTMLDetailsElement</dfn> : <span>HTMLElement</span> {
data-x="attr-details-open">open</code> attributes in the markup. This requirement on authors
forbids such misleading markup.</p>

<p>A document must not contain a <code>details</code> element that is a descendant of another
<code>details</code> element in the same <span>details name group</span>.</p>

<p>Documents that use the <code data-x="attr-details-name">name</code> attribute to group multiple
related <code>details</code> elements should keep those related elements together in a containing
element (such as a <code>section</code> element).</p>
Expand Down

0 comments on commit 8027fc5

Please sign in to comment.