[wp-trac] [WordPress Trac] #47141: Radio and checkbox labels rely on implicit association

WordPress Trac noreply at wordpress.org
Mon May 6 16:03:10 UTC 2019


#47141: Radio and checkbox labels rely on implicit association
-------------------------------------------------+-------------------------
 Reporter:  anevins                              |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Media                                |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-screenshots needs-patch          |     Focuses:
  wpcampus-report                                |  accessibility
-------------------------------------------------+-------------------------

Comment (by afercia):

 Note about the recommended code above:

 The current WordPress accessibility codings standards recommend explicit
 labelling with for/id attributes and warn to ''not'' use both implicit and
 explicit labelling: https://make.wordpress.org/core/handbook/best-
 practices/coding-standards/accessibility-coding-standards/#labeling

 Testing and data (note: tests were made on 12/01/2012):

 https://developer.paciellogroup.com/blog/2011/07/html5-accessibility-
 chops-form-control-labeling/
 > Until browser implementers fix their accessibility support, if you want
 controls to be understandable to AT users label controls using for and id.
 Do not use the control inside the label method. Do not use a combination
 of the 2 methods.

 Until there are new data, I'd recommend to stick to the WordPress
 accessibility codings standards.

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


More information about the wp-trac mailing list