WordPress.org

Make WordPress Core

Ticket #15081: a11y.patch

File a11y.patch, 630 bytes (added by jorbin, 10 years ago)
  • general-template.php

     
    159159
    160160        $form = '<form role="search" method="get" id="searchform" action="' . home_url( '/' ) . '" >
    161161        <div><label class="screen-reader-text" for="s">' . __('Search for:') . '</label>
    162         <input type="text" value="' . get_search_query() . '" name="s" id="s" />
     162        <input type="search" value="' . get_search_query() . '" name="s" id="s" />
    163163        <input type="submit" id="searchsubmit" value="'. esc_attr__('Search') .'" />
    164164        </div>
    165165        </form>';