Improve the template code of the Finder module
A new <search> element has been added to the HTML specification.
see 4.4.15 The search element
The Finder module template uses the role=search attribute in the form tag.
<form
class="mod-finder js-finder-searchform form-search"
action="<?php echo Route::_($route); ?>"
method="get"
role="search">
The incorrect use of the role=search attribute on the form element was pointed out by Adrian Roselli (see Where to Put Your Search Role
I suggest that the Finder module template should be improved:
- use the search tag
- remove the role attribute from the form element
- if the search tag is not used (because it may not yet have good support in browsers and assistive technologies), place the role=search attribute in an additional container (see examples at Adrian Roselli)
If you read the specification and posts from others such as scott ohara you will see that they disagree with adrian
use the search tag
There is not a single browser that supports this at this time
This is now supported by all browsers
Can someone make a PR for Joomla6?