w3c / html-aria

ARIA in HTML
https://w3c.github.io/html-aria/
Other
179 stars 48 forks source link

Is body's implicit role really document? #320

Closed joanmarie closed 3 years ago

joanmarie commented 3 years ago

Take a look at the opening report of https://github.com/w3c/html-aam/issues/330.

TL;DR: Everyone is essentially exposing html as the document (i.e. it's mapped). Most are exposing body as a generic child thereof -- except Firefox which is pruning it (causing the author's aria-label to be discarded).

But this spec states that body has an implicit role of document. That does seem right....

scottaohara commented 3 years ago

while we do not have a clear path forward on what body should map to in html aam, I think we can at least close this issue by swapping the html and body's implicit mapping cells. So i'm going to do that so at least this can be closed and be as 'accurate' as it can be while html aam gets sorted. then, when/if body's mapping changes there, I can get that updated here as well