[wp-trac] [WordPress Trac] #65315: Inserting the same image with different captions on the same page results in figcaptions with duplicate `id` elements.

WordPress Trac noreply at wordpress.org
Sat May 23 14:42:10 UTC 2026


#65315: Inserting the same image with different captions on the same page results
in figcaptions with duplicate `id` elements.
--------------------------------------+----------------------------
 Reporter:  SteelWagstaff             |       Owner:  joedolson
     Type:  defect (bug)              |      Status:  accepted
 Priority:  normal                    |   Milestone:  7.1
Component:  Media                     |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  accessibility
--------------------------------------+----------------------------
Changes (by joedolson):

 * owner:  (none) => joedolson
 * status:  new => accepted
 * milestone:  Awaiting Review => 7.1


Comment:

 This will only impact accessibility if there's an accessibility feature
 that needs to uniquely target an ID; but it's certainly worth addressing,
 nonetheless. While WCAG 4.1.1 has been removed from the accessibility
 standards, this is still poor practice, and IDs should be unique.

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


More information about the wp-trac mailing list