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 1 month, 1 week ago.
- AuthorPosts
- February 16, 2023 at 3:25 pm #41424
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 🙂
BjarneAttachments:
You must be logged in to view attached files.February 16, 2023 at 4:47 pm #41429Hi,
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 :)
February 17, 2023 at 10:15 am #41436Oh 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 👍
February 17, 2023 at 10:24 am #41439Perfect, 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 :)
- AuthorPosts
You must be logged in to reply to this topic.