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

Processing of the role attribute not clearly defined #1236

Closed
zcorpan opened this issue Apr 14, 2020 · 1 comment · Fixed by #1457
Closed

Processing of the role attribute not clearly defined #1236

zcorpan opened this issue Apr 14, 2020 · 1 comment · Fixed by #1457
Assignees
Milestone

Comments

@zcorpan
Copy link
Member

zcorpan commented Apr 14, 2020

For the role attribute, https://w3c.github.io/aria/#introroles says

User agents MUST use the first token in the sequence of tokens in the role attribute value that matches the name of any non-abstract WAI-ARIA role. The following steps will correctly identify the applicable WAI-ARIA role:

The above only has one MUST requirement; the second sentence and the list below are statements of fact. I think the first sentence should be removed, and the second sentence should say "MUST".

  1. Use the rules of the host language to detect that an element has a role attribute and to identify the attribute value string for it.

What does this mean? Is it applying the requirements from html-aam for HTML?

  1. Separate the attribute value string for that attribute into a sequence of whitespace-free substrings by separating on whitespace.

What does "whitespace" mean? Should this use https://infra.spec.whatwg.org/#split-on-ascii-whitespace ?

  1. Compare the substrings to all the names of the non-abstract WAI-ARIA roles. Case-sensitivity of the comparison inherits from the case-sensitivity of the host language.

What does this mean? HTML has some attribute values case-sensitive, some ASCII case-insensitive.

  1. Use the first such substring in textual order that matches the name of a non-abstract WAI-ARIA role.

(This step seems clear enough.)

@joanmarie
Copy link
Contributor

To me, the enumerated steps seem redundant to the "User agents MUST" statement.

@jnurthen jnurthen added this to the ARIA 1.3 milestone Apr 16, 2020
@scottaohara scottaohara self-assigned this Apr 15, 2021
scottaohara added a commit that referenced this issue Apr 15, 2021
closes #1236

remove second sentence / steps to correctly identify WAI-ARIA roles from intro to roles section.

add new sentence linking to 8.1 Role Attribute steps for `role` implementation in the host language
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants