Skip to content

Commit 8000b2a

Browse files
authored
Correction for HTML element role mapping
per w3c/aria#2504 - the html element doesn't actually map to the `document` role - rather a parent `document node` to the `html` element is what exposes the `document` role of a web page. This update fixes the spec to match the updated HTML aam mapping / matches reality. The `generic` role is being added as an "allowed" but not recommended role to the `html` element. The `document` role is being kept as an allowed role for the `html` element. The rational there being that this has been in the spec for a long time and even when specified on the html element, from what i can tell, there's no pro/con to its inclusion.
1 parent 662201f commit 8000b2a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,11 +1531,12 @@ <h2 id="docconformance">
15311531
[^html^]
15321532
</th>
15331533
<td>
1534-
<code>role=<a href="#index-aria-document">document</a></code>
1534+
<code>role=<a href="#index-aria-generic">generic</a></code>
15351535
</td>
15361536
<td>
15371537
<p>
1538-
<a><strong class="nosupport">No `role`</strong></a> other than <code><a href="#index-aria-document">document</a></code>, which is NOT RECOMMENDED.
1538+
<a><strong class="nosupport">No `role`</strong></a> other than <code><a href="#index-aria-document">document</a></code>
1539+
or <code><a href="#index-aria-generic">generic</a></code>, which are NOT RECOMMENDED.
15391540
</p>
15401541
<p>
15411542
<strong>No `aria-*` attributes</strong>.

0 commit comments

Comments
 (0)