[wp-trac] [WordPress Trac] #10108: Invalid HTML in get_search_form()

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 11 15:58:21 GMT 2009


#10108: Invalid HTML in get_search_form()
--------------------------+-------------------------------------------------
 Reporter:  kchrist       |       Owner:                       
     Type:  defect (bug)  |      Status:  new                  
 Priority:  normal        |   Milestone:                       
Component:  General       |     Version:  2.8                  
 Severity:  normal        |    Keywords:  html search templates
--------------------------+-------------------------------------------------
 The {{{get_search_form()}}} function outputs the following HTML:

 {{{
 <form role="search" method="get" id="searchform" action="' .
 get_option('home') . '/" >
 }}}

 The "role" attribute is not valid in any current version of (X)HTML. While
 it may be a part of XHTML 1.2, it may not even be used in HTML5, which is
 the direction things are going. Attributes defined in the XHTML 1.2 draft
 should not be implemented until they become part of a final
 recommendation.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10108>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list