get_search_form – invalid HTML generated – Screen Reader issue
-
The code on lines 235-239 need to be changed as the <label> element is closed prior to the <input> statement
<div> <label class="screen-reader-text" for="s">' . _x( 'Search for:', 'label' ) . '</label> <input type="text" value="' . get_search_query() . '" name="s" id="s" /> <input type="submit" id="searchsubmit" value="'. esc_attr_x( 'Search', 'submit button' ) .'" /> </div>
Should be changed to
<div> <label class="screen-reader-text" for="s">' . _x( 'Search for:', 'label' ) . ' <input type="text" value="' . get_search_query() . '" name="s" id="s" /></label> <input type="submit" id="searchsubmit" value="'. esc_attr_x( 'Search', 'submit button' ) .'" /> </div>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘get_search_form – invalid HTML generated – Screen Reader issue’ is closed to new replies.