Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Reference "applied role" in axs.utils.getRoles #130

Closed
ricksbrown opened this issue Jan 9, 2015 · 1 comment
Closed

Reference "applied role" in axs.utils.getRoles #130

ricksbrown opened this issue Jan 9, 2015 · 1 comment
Assignees

Comments

@ricksbrown
Copy link
Collaborator

The ARIA spec allows for multiple roles but only one is applied.
axs.utils.getRoles should indicate which role was "applied" as this is likely to be required in many cases.

For example given the element below:

<span role="foo bar checkbox button">

axs.utils.getRoles should indicate that the applied role is checkbox.

This is best implemented as a new property applied on the return value which references the applied role roleObject.

@ricksbrown ricksbrown self-assigned this Jan 9, 2015
ricksbrown added a commit to ricksbrown/accessibility-developer-tools that referenced this issue Jan 15, 2015
@ricksbrown
Copy link
Collaborator Author

This was closed by PR#138

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants