[Bug?] Default Search Form Invalid XHTML (2 posts)

  1. fredleblanc
    Posted 7 years ago #

    The default search form generated by get_search_form(); is creating invalid XHTML. There needs to be some sort of block-level element between the <form> and <label> tags.

    I know that I can override this with searchform.php, the concern is just in the defaults. I'm using version 2.7.1.

    (This may have already been reported, but my searches couldn't find anything.)

  2. Gal Baras
    Posted 6 years ago #

    I'm using version 2.8.4 and the search for reads:

    <form role="search" method="get" id="searchform" action="http://www.ronitbaras.com/" >

    This does not validate correctly.

    Please also see . There's a workaround, but it's still a bug.

    WordPress core functions should produce clean code.

Topic Closed

This topic has been closed to new replies.

About this Topic