Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use document.title as fallback accessible name for html root element #446

Merged
merged 2 commits into from
Mar 31, 2022

Conversation

calebeby
Copy link
Member

I could not find this in the spec, but it is consistent in Chrome's devtools accessibility inspector, Firefox's, and also in VO in safari:

The HTML root element gets the role of document (this is in the spec)
That element gets an implicit name corresponding to document.title (I could not find this in the spec).

Here is where I looked:

Copy link
Member

@spaceninja spaceninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

@calebeby calebeby merged commit 1eaa648 into main Mar 31, 2022
@calebeby calebeby deleted the getAccessibilityTree-document-title branch March 31, 2022 20:46
@github-actions github-actions bot mentioned this pull request Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document.title should be used to compute name of root html element in getAccessibilityTree
2 participants