KEMBAR78
Mappings for body and html don't seem to match reality · Issue #330 · w3c/html-aam · GitHub
Skip to content

Mappings for body and html don't seem to match reality #330

@joanmarie

Description

@joanmarie

Load the following test case in macOS, Windows, or Linux:

<html>
  <head><title>HTML Title</title></head>
  <body aria-label="ARIA label on body">
    <div>Hello world</div>
  </body>
</html>

And then load the accessible inspector of your choice for that platform to compare the tree with the mappings for body (which are documenty) and html (not mapped).

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).

Linux results

Chrome

[document web] name='HTML Title'
++[section] name='ARIA label on body' tag:body
++++[section] tag:div

Firefox

[document web] name='HTML Title' tag:body
++[section] name='' tag:div

Epiphany (WebKitGtk)

[document web] name='HTML Title'
++[panel] name='ARIA label on body' tag:body
++++[section] tag:div

Windows results

Chrome

ROLE_SYSTEM_DOCUMENT name='HTML Title' 
++IA2_ROLE_SECTION name='ARIA label on body'
++++IA2_ROLE_SECTION parent='ROLE_SYSTEM_GROUPING'

Firefox

ROLE_SYSTEM_DOCUMENT name='HTML Title' 
++IA2_ROLE_SECTION parent='ROLE_SYSTEM_GROUPING'

Edge

document 'HTML Title`
++ group `ARIA label on body'

Mac results

Safari and Chrome

HTML Title (HTML content)
++ ARIA label on body (group)
++++ <empty description> (group)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions