[wp-trac] [WordPress Trac] #64127: KSES: Add `name` attribute to the <details> element

WordPress Trac noreply at wordpress.org
Wed Oct 22 21:00:33 UTC 2025


#64127: KSES: Add `name` attribute to the <details> element
--------------------------+--------------------------
 Reporter:  Soean         |       Owner:  westonruter
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  6.9
Component:  General       |     Version:  6.8
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+--------------------------
Changes (by westonruter):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"61051" 61051]:
 {{{
 #!CommitTicketReference repository="" revision="61051"
 Editor: Allow `name` attribute on the `details` element in KSES.

 The `details` element supports the exclusive accordion behavior among
 multiple `details` elements by setting a common `name` attribute. The
 ability to set the `name` attribute in the Details block was added in of
 Gutenberg 20.2. However, when a user without `unfiltered_html` attempts to
 save the post, the `name` attribute gets erroneously stripped out. This
 prevents that.

 See [https://github.com/WordPress/gutenberg/issues/56969 Details block:
 Exclusive accordions].

 Follow-up to [14406], [59775].

 Props soean.
 See #12835, #62887.
 Fixes #64127.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64127#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list