w3c / webdriver

Remote control interface that enables introspection and control of user agents.
https://w3c.github.io/webdriver/
Other
679 stars 194 forks source link

"Get Computed Role" should reference WAI-ARIA Computed Role #1727

Open spectranaut opened 1 year ago

spectranaut commented 1 year ago

Currently, GetComputedRole spec says:

Let role be the result of computing the [WAI-ARIA role](https://w3c.github.io/webdriver/#dfn-wai-aria-role) of element.

In the ARIA spec currently, we don't specify how to "compute the WAI-ARIA role", and the raw role string (i.e. "foo" for role="foo") should not be return in some cases. For example, we have synonyms (role=image and role=img) which should both return the same roles.

We are working on a fix in ARIA, and when that lands, the GetComputedRole should reference it: https://github.com/w3c/core-aam/pull/167