Feature No Code Attached Yet a11y
avatar zwiastunsw
zwiastunsw
1 Aug 2023

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)
avatar zwiastunsw zwiastunsw - open - 1 Aug 2023
avatar joomla-cms-bot joomla-cms-bot - change - 1 Aug 2023
Labels Added: No Code Attached Yet a11y
avatar joomla-cms-bot joomla-cms-bot - labeled - 1 Aug 2023
avatar zwiastunsw zwiastunsw - change - 1 Aug 2023
The description was changed
avatar zwiastunsw zwiastunsw - edited - 1 Aug 2023
avatar brianteeman
brianteeman - comment - 2 Aug 2023

If you read the specification and posts from others such as scott ohara you will see that they disagree with adrian

avatar brianteeman
brianteeman - comment - 2 Aug 2023

use the search tag

There is not a single browser that supports this at this time

avatar Quy Quy - change - 4 Aug 2023
Labels Added: Feature
avatar Quy Quy - labeled - 4 Aug 2023
avatar brianteeman
brianteeman - comment - 21 Jan 2024

This is now supported by all browsers

avatar rdeutz
rdeutz - comment - 27 Apr 2024

Can someone make a PR for Joomla6?

Add a Comment

Login with GitHub to post a comment