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.

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 1 year, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #41424
    Bjarne Oldrup
    oldrup
    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

    Attachments:
    You must be logged in to view attached files.
    #41429
    Ernest Marcinko
    Ernest 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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #41436
    Bjarne Oldrup
    oldrup
    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 Marcinko
    Ernest 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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.