This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Element div not allowed as child of element button in this context.

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Element div not allowed as child of element button in this context.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #41424
    Bjarne Oldrupoldrup
    Participant

    The HTML markup of the search button has been changed at some point, I think. Ajax Search Lite (and I assume Pro as well) no longer HTML validates, but throws the following error:

    “Element div not allowed as child of element button in this context.”

    For a more complete error description and maybe a hint of a solution, see https://validator.w3.org/nu/?doc=https%3A%2F%2Foldrup.net%2Fajax-search-lite%2F

    (I assume this error was introduced in relation to the nice accessibility improvements, tab-index).

    I’ll gladly test any beta containing a fix – just say so 🙂
    Bjarne

    #41429
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Thank you for noticing, I will change those child elements to spans or something else inline. Luckily it is not a big deal, but I will fix it as soon as possible.

    #41436
    Bjarne Oldrupoldrup
    Participant

    Oh it’s no big deal. And it’s not that it doesn’t work – it’s just nice to be able pass the HTML validation – some people care about that.

    I’m testing Ajax Search on my WordPress 6.2 beta 2 / PHP 8.1 test bench btw – and so far, no issues 👍

    https://oldrup.net/ajax-search-lite/

    #41439
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Perfect, thank you! You can report any issues even the smallest ones, in most cases it is super easy to fix, it is worth it to make the plugin better.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.