Support » Requests and Feedback » Widget Search code not valid (w3c)

  • Hello, with widgetsidebar, “Search” is not valid at
    http://validator.w3.org/
    that say:
    document type does not allow element “label” here; missing one of “p”, “h1”, “h2”, “h3”, “h4”, “h5”, “h6”, “div”, “pre”, “address”, “fieldset”, “ins”, “del” start-tag

    So, in general-template.php, line 112
    <label class="hidden" for="s">' . __('Search for:') . '</label>

    must be
    <div><label class="hidden" for="s">' . __('Search for:') . '</label></div>

    and that’s valid.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Jen

    (@jenmylo)

    Community Organizer

    I’ll bring this to the attention of the core devs.

    Jen

    (@jenmylo)

    Community Organizer

    This has been fixed in trunk, so with version 2.8 all will be well. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Widget Search code not valid (w3c)’ is closed to new replies.