[wp-trac] [WordPress Trac] #52414: Accessibility checker flags search form

WordPress Trac noreply at wordpress.org
Mon Feb 1 13:05:07 UTC 2021


#52414: Accessibility checker flags search form
--------------------------+-----------------------------
 Reporter:  TylerTork     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Using "achecker.ca" to test accessibility of a WordPress site, I got the
 following warning regarding the core Search widget:

 Check 57: input element, type of "text", missing an associated label.
 Repair: Add a label element that surrounds the control's label. Set the
 for attribute on the label element to the same value as the id attribute
 of the control. And/or add a title attribute to the input element. And/or
 create a label element that contains the input element.

 The HTML it flagged was:

 <input type="text" name="s" class="form-control" placeholder="Search">

 Could we please add a title attribute as suggested by the testing tool?

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


More information about the wp-trac mailing list