[wp-trac] [WordPress Trac] #16539: Duplicate search widgets cause ID conflicts

WordPress Trac noreply at wordpress.org
Fri Apr 5 15:22:19 UTC 2013


#16539: Duplicate search widgets cause ID conflicts
--------------------------+---------------------
 Reporter:  solarissmoke  |       Owner:  azaozz
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  3.6
Component:  Widgets       |     Version:  3.0
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+---------------------

Comment (by WraithKenny):

 There's been some limited concern brought up through out this ticket about
 screen-readers. According to the WCAG, you have to:

  1.
   a. Match `for` and `id` tags
   b. OR wrap `input` in the `label` (but doesn't work in Jaws7/IE6)
   c. OR Use a `title` matching the text of the label.
  2. AND `id`s must be unique if used.

 The reason for this research was only to answer the question of whether
 the `id`s could be "safely" removed (with regards to screen readers), to
 which the answer was "yes." The 'html5' version now satisfies these
 conditions. In the default version though, worrying about 1. is moot if
 it's violating 2.

 I just found it weird that themes are burdened with fixing core's bug.
 (HTML5 themes will get the fix as a bonus when they use the filter for the
 new search form.) The decision seems made, so I'll move on to something
 else :) Cheers!

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16539#comment:74>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list