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

WordPress Trac noreply at wordpress.org
Fri Aug 9 03:05:17 UTC 2024


#61014: Duplicate HTML id attribute in Quick/Bulk Edit on pages and post list
-----------------------------+--------------------------------
 Reporter:  zodiac1978       |       Owner:  rcreators
     Type:  defect (bug)     |      Status:  assigned
 Priority:  low              |   Milestone:  6.7
Component:  Quick/Bulk Edit  |     Version:
 Severity:  minor            |  Resolution:
 Keywords:  has-patch        |     Focuses:  ui, accessibility
-----------------------------+--------------------------------

Comment (by peterwilsoncc):

 In the [https://github.com/WordPress/wordpress-develop/pull/7167 linked
 pull request], I have

 * modified `Walker_Category_Checklist` to avoid duplicate IDs on both the
 `li` and `select` elements. This affects both the post lists page and the
 classic editor meta boxes (cc @azaozz)
 * added the prefix to the JavaScript code's duplication of the inline
 editor to the bulk editor
 * used a different ID for the `#post_parent` dropdown in the bulk editor

 The last two items are from @siliconforks patches on this ticket. Thank
 you :)

 I'm not seeing any further warnings of duplicate IDs in Chrome's dev
 tools.

 The autosave function for the classic editor appears to be unaffected by
 these changes (it searches through taxonomy terms using the existing IDs)
 as it's saving via the field value.

 However, it would be helpful if others could check the combination of all
 the patches to ensure it's still working as expected.

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


More information about the wp-trac mailing list