Skip to content

Write tests for HTML-AAM host-language-reserved roles #182

Open
@cookiecrook

Description

@cookiecrook

Core-AAM includes the following comments on host language specific computed roles. (Cite: after Example 2)

When host language elements do not have an exact or equivalent mapping to a valid, non-abstract role, the related Accessibilty API Mapping extension specification MAY specify a unique computedrole string as the return value for interoperability testing purposes, such as

<video> <!-- computedrole returns "html-video" -->

<main role="html-video"> <!-- Author error. computedrole returns "main" -->

HTML-AAM is the first AAM spec to define some of these. html-input-file is an example.
https://www.w3.org/TR/html-aam-1.0/#el-input-file

We should add some WPT tests in order to:

  • verify these new computed roles are returned for host language elements.
  • verify that it's a no-op if authors add them: (<div role="html-input-file"> is an author error and MUST NOT result changing the computedrole)

Note: these engine changes will be reflected in browser accessibility developer features as well... For example, once the change is made in WebKit's WebCore Accessibility, the role change will be visible in the WebKit Web Inspector DOM Accessibility pane. I assume the same is true of other browser's web dev tools.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions