Skip to content

Commit d4ff854

Browse files
authored
disallow aria-hidden on body element (#447)
* disallow aria-hidden on body element related to w3c/aria#1254 closes #221 - there were comments to do more with aria-hidden rules beyond just disallowing it on body, but i'm going to make a new issue for potentially covering those topics. as `aria-hidden=false` doesn't seem to cause any problems, even per the note in ARIA to use with caution: >At the time of this writing, aria-hidden="false" is known to work inconsistently in browsers. As future implementations improve, use caution and test thoroughly before relying on this approach. call out that not all global attributes are allowed on generic
1 parent 0f31dbf commit d4ff854

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

index.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,17 @@
6363
the following substantive additions and/or corrections have been proposed:
6464
p>
6565
<ul>
66+
<li>
67+
<a href="https://github.com/w3c/html-aria/pull/447">6 March 2023 - Addition:a>
68+
Disallow `aria-hidden=true` on the `body` element.
69+
li>
6670
<li>
6771
<a href="https://github.com/w3c/html-aria/pull/415">13 February 2023 - Addition:a>
68-
update figure role allowances to include `doc-example`.
72+
Update `figure` element role allowances to include `doc-example`.
6973
li>
7074
<li>
7175
<a href="https://github.com/w3c/html-aria/pull/437">07 November 2022 - Correction:a>
72-
Revisions to 'any role' term description.
76+
Revisions to 'any role' term description.
7377
li>
7478
<li>
7579
<a href="https://github.com/w3c/html-aria/pull/383">14 July 2022 - Correction:a>
@@ -802,7 +806,10 @@

802806
p>
803807
<p class="addition"><a>Naming Prohibiteda>p>
804808
<p>
805-
Otherwise, <a data-cite="wai-aria-1.2#global_states">global `aria-*` attributesa>.
809+
Otherwise, <a data-cite="wai-aria-1.2#global_states">global `aria-*` attributesa>
810+
<span class="addition proposal">
811+
allowed for the `generic` role, with the exception that authors MUST NOT specify `aria-hidden=true` on the `body` element.
812+
span>
806813
p>
807814
td>
808815
tr>

0 commit comments

Comments
 (0)