[wp-trac] [WordPress Trac] #44323: Insert/ Edit link: Checkbox missing association with Label

WordPress Trac noreply at wordpress.org
Wed Jun 13 08:49:51 UTC 2018


#44323: Insert/ Edit link: Checkbox missing association with Label
--------------------------+------------------------------
 Reporter:  anevins       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  TinyMCE       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  accessibility
--------------------------+------------------------------

Comment (by afercia):

 Technically, both implicit (wrapping label) and explicit (for/id)
 associations are correct. For all new code, the accessibility standards
 recommend explicit (for/id) association, see
 https://make.wordpress.org/core/handbook/best-practices/coding-standards
 /accessibility-coding-standards/#labeling and that's to maximize support
 for various browsers / assistive technology combos. We shouldn't assume
 all users have the latest shining screen reader or browser version. As a
 best practice, a non-wrapping label that uses for/id association is
 better, and offers also other advantages, e.g. can be styled better.

 That said, we recommend it for all new code to avoid refactoring of
 existing code, but I wouldn't be opposed to enhance this specific case if
 somebody wants to make a patch :)

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


More information about the wp-trac mailing list