WordPress.org

Make WordPress Core

Changeset 36222


Ignore:
Timestamp:
01/08/2016 07:00:39 PM (6 years ago)
Author:
afercia
Message:

Accessibility: remove the title attribute from the get_search_form() HTML5 search field.

It was added in [23801] as a workaround for issues with very old browser/screen reader combos (Jaws7/IE6).
No more necessary today. Reduces redundancy and noise for screen reader users.

See #16539.
Fixes #33952.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r36168 r36222  
    227227                <label>
    228228                    <span class="screen-reader-text">' . _x( 'Search for:', 'label' ) . '</span>
    229                     <input type="search" class="search-field" placeholder="' . esc_attr_x( 'Search &hellip;', 'placeholder' ) . '" value="' . get_search_query() . '" name="s" title="' . esc_attr_x( 'Search for:', 'label' ) . '" />
     229                    <input type="search" class="search-field" placeholder="' . esc_attr_x( 'Search &hellip;', 'placeholder' ) . '" value="' . get_search_query() . '" name="s" />
    230230                </label>
    231231                <input type="submit" class="search-submit" value="'. esc_attr_x( 'Search', 'submit button' ) .'" />
Note: See TracChangeset for help on using the changeset viewer.