[wp-trac] [WordPress Trac] #61014: Duplicate HTML id attribute in Quick/Bulk Edit on pages and post list

WordPress Trac noreply at wordpress.org
Tue Apr 16 08:45:35 UTC 2024


#61014: Duplicate HTML id attribute in Quick/Bulk Edit on pages and post list
-------------------------------+--------------------------------------
 Reporter:  zodiac1978         |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Quick/Bulk Edit    |    Version:
 Severity:  normal             |   Keywords:  needs-patch dev-feedback
  Focuses:  ui, accessibility  |
-------------------------------+--------------------------------------
 In the Chrome dev tools, I stumbled upon an error message in a clean fresh
 WP 6.5 installation:

 {{{
 Duplicate form field id in the same form
 }}}

 This happens for post and pages:
 `/wp-admin/edit.php` (posts)
 `/wp-admin/edit.php?post_type=page` (pages)

 This happens because the markup for the quickedit and the bulk edit share
 the same ID attribute for the category checkbox(es):

 {{{
 <input value="1" type="checkbox" name="post_category[]" id="in-
 category-1">
 }}}


 For the pages list it is the select for the parent page (again QuickEdit
 vs. Bulk Edit):

 {{{
 <select name="post_parent" id="post_parent">
 }}}


 I am not sure if this is an accessibility problem per se, because the
 QuickEdit is hidden. But in a similar case it was fixed. See: #55575

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61014>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list