Skip to content

Commit

Permalink
add the new search element (#401)
Browse files Browse the repository at this point in the history
* add the new search element
* allowed roles: form, group, none, presentation, region and with the allowed but not recommended use of search.
* All global `aria-*` attributes would be allowed on this element.
* update change log

the additional roles added to the search element allowances are to provide reasonable roles that developers may need to use while the search element is still being implemented by browsers, as well as roles which might be reasonable 'fixes' for someone who used the element per their understanding of its semantics, but was not aware of the landmark region it creates, which is not appropriate in context of their web page, or to mitigate instances of possible existing custom 'search' elements that are now valid html elements.
  • Loading branch information
scottaohara authored Mar 24, 2023
1 parent d4ff854 commit 591be7c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@
the following substantive additions and/or corrections have been proposed:
</p>
<ul>
<li>
<a href="https://github.com/w3c/html-aria/pull/401">24 March 2023 - Addition:</a>
The <a href="#el-search">`search`</a> element has been added.
</li>
<li>
<a href="https://github.com/w3c/html-aria/pull/447">6 March 2023 - Addition:</a>
Disallow `aria-hidden=true` on the `body` element.
Expand Down Expand Up @@ -2652,6 +2656,33 @@ <h2 id="docconformance">
</p>
</td>
</tr>
<tr>
<th id="el-search" tabindex="-1">
[^search^]
</th>
<td>
<p>
<code>role=<a href="#index-aria-search">search</a></code>
</p>
</td>
<td>
<div class="addition proposed">
<p>
Roles:
<a href="#index-aria-form">`form`</a>,
<a href="#index-aria-group">`group`</a>,
<a href="#index-aria-none">`none`</a>,
<a href="#index-aria-presentation">`presentation`</a> or
<a href="#index-aria-region">`region`</a>.
(<code><a href="#index-aria-search">search</a></code> is also allowed, but NOT RECOMMENDED.)
</p>
<p>
<a data-cite="wai-aria-1.2#global_states">Global `aria-*` attributes</a>
and any `aria-*` attributes applicable to the allowed roles.
</p>
</div>
</td>
</tr>
<tr>
<th id="el-section" tabindex="-1">
[^section^]
Expand Down

0 comments on commit 591be7c

Please sign in to comment.