Skip to content

Are ARIA roles case sensitive or case insensitive? #2548

Open
@jcsteh

Description

@jcsteh

Are ARIA roles meant to be case sensitive or not? Before #1457, the ARIA spec included this statement:

  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.

The Firefox accessibility team assumed that meant ARIA roles should be case insensitive in HTML. However, as @zcorpan pointed out here:

HTML has some attribute values case-sensitive, some ASCII case-insensitive.

I can't find any guidance in the spec either way, but all three engines are case insensitive as far as I know. Am I missing some guidance or is this currently undefined?

The reason this matters to me right now is that I'm trying to fix a crash in Gecko and was about to add a WPT test which exercises it. However, I can't reasonably add a WPT test which exercises case insensitivity if the spec doesn't say it's case insensitive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clarificationclarifying or correcting language that is either confusing, misleading or under-specified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions