Skip to content

Clarify case-insensitive treatment of ARIA roles - #2838

Open
rahimabdi wants to merge 2 commits into
mainfrom
rahim/clarify-case-insensitivity
Open

Clarify case-insensitive treatment of ARIA roles#2838
rahimabdi wants to merge 2 commits into
mainfrom
rahim/clarify-case-insensitivity

Conversation

@rahimabdi

@rahimabdi rahimabdi commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

🚀 Netlify Preview:
🔄 this PR updates the following sspecs:

Closes #2548

This PR updates the "WAI-ARIA Roles" section specifying treatment of ARIA roles should be case-insensitive (see WPT tests below).

@netlify

netlify Bot commented Jul 6, 2026

Copy link
Copy Markdown

Deploy Preview for wai-aria ready!

Name Link
🔨 Latest commit 8da60c7
🔍 Latest deploy log https://app.netlify.com/projects/wai-aria/deploys/6a4c82d57c7296000833a289
😎 Deploy Preview https://deploy-preview-2838--wai-aria.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@rahimabdi rahimabdi self-assigned this Jul 6, 2026
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed on https://deploy-preview-2838--wai-aria.netlify.app

@github-actions
github-actions Bot temporarily deployed to pull request July 6, 2026 06:53 Inactive
Comment thread index.html
</p>
<p>
User agents MUST use the first token in the sequence of tokens in the <a><code>role</code> attribute</a> value that matches the name of any non-abstract
User agents MUST use the first token in the sequence of tokens in the <a><code>role</code> attribute</a> value that is an [=ASCII case-insensitive=] match for the name of any non-abstract

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think there needs to be a matching change in the definition of the role attribute (Section 8.1) which has

The first name literal of a non-abstract WAI-ARIA role in the list of tokens in the role attribute defines the role according to which the user agent MUST process the element.

Come to think of it, I think it would be better to remove this sentence here and only clarify this in the definition of the role attribute / Section 8.1.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Agreed @pkra, could it be specified in both places? I've updated the PR.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We just merged #2798 and section 8.1 is now the definitive place.

I strongly prefer not to duplicate normative statements - they get out of sync. Especially here, where there is little reason to look for a duplication all the way in Section 4 should we change something in Section 8.1.

@rahimabdi
rahimabdi requested a review from pkra July 7, 2026 04:40
@github-actions
github-actions Bot temporarily deployed to pull request July 7, 2026 04:40 Inactive
@jnurthen
jnurthen requested review from HaTheo and front-endian July 9, 2026 17:19

@HaTheo HaTheo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. I am not too familiar with the repercussions of defining it both in 4.1 and 8.1, but I saw pkra seemed to prefer defining it only in 8.1.

Comment thread index.html
</li>
<li>
The first name literal of a non-abstract <abbr title="Accessible Rich Internet Applications">WAI-ARIA</abbr> role in the list of tokens in the <a><code>role</code> attribute</a> defines
The first [=ASCII case-insensitive=] name literal of a non-abstract <abbr title="Accessible Rich Internet Applications">WAI-ARIA</abbr> role in the list of tokens in the <a><code>role</code> attribute</a> defines

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this sentence should be replaced with the one above; "name literal" is just odd here.

@HaTheo
HaTheo requested review from HaTheo and pkra August 4, 2026 16:50
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.

Are ARIA roles case sensitive or case insensitive?

4 participants