[wp-trac] [WordPress Trac] #15081: Search Form should use type='search'

WordPress Trac noreply at wordpress.org
Wed Feb 27 18:17:29 UTC 2013


#15081: Search Form should use type='search'
--------------------------------------+------------------
 Reporter:  jorbin                    |       Owner:
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  3.6
Component:  Accessibility             |     Version:
 Severity:  minor                     |  Resolution:
 Keywords:  has-patch twentythirteen  |
--------------------------------------+------------------

Comment (by lancewillett):

 Patch is a great start. A few suggestions:

 If 'html5' is the format:

  1. add {{{placeholder}}} element to search input, with something like
 {{{<?php echo esc_attr_x( 'Search &hellip;', 'placeholder' ); ?>}}} as the
 text

 General improvements:

  1. Add two class values: form: "searchform", submit button input:
 "submit"
  2. Use better gettext for translators in the label: {{{<?php _ex(
 'Search', 'assistive text' ); ?>}}}
  3. Better gettext in the submit button text: {{{<?php echo esc_attr_x(
 'Search', 'submit button' ); ?>}}}
  4. Does the submit button element need {{{name="submit"}}} also?

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


More information about the wp-trac mailing list