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

Why does role=none|presentation only prohibit aria-label and aria-labelledby #1983

Open
pkra opened this issue Jul 18, 2023 · 3 comments
Open
Assignees
Labels
clarification clarifying or correcting language that is either confusing, misleading or under-specified
Milestone

Comments

@pkra
Copy link
Member

pkra commented Jul 18, 2023

Currently, role=none only prohibits the use of aria-label and aria-labelledby. I was wondering if other states and properties should not also be prohibited.

My starting point for this was aria-roledescription which seemed particularly odd to me. But then really all of them seemed odd. Of course I can see them being important if presentational conflict resolution, but in that situation wouldn't aria-label and aria-labelledby be equally useful?

I'm probably just missing a distinction. I'd be grateful for a clarifying comment.

@scottaohara
Copy link
Member

i remember mumbling about this at one point. If i recall correctly, it wasn't really considered something to worry about since if a none/presentation element gets a global ARIA attribute, the presentational role is dropped in favor of the implicit or fallback role.

If an element has global WAI-ARIA states or properties, user agents MUST ignore the presentation role and expose the element with its implicit role. However, if an element has only non-global, role-specific WAI-ARIA states or properties, the element MUST NOT be exposed unless the presentational role is inherited and an explicit non-presentational role is applied.

though i (still) agree. it is a bit silly/confusing to say that naming them is prohibited, but all other global attributes are allowed/inherited... but also, if those attributes are used it negates the presentational role anyway... so in a very round about way, they're prohibited without saying as much.

@pkra
Copy link
Member Author

pkra commented Jul 19, 2023

Thanks, Scott. Perhaps the group can decide if we should add some clarifying language (though it seems hard to clarify by adding more information 😞 ).

@spectranaut spectranaut added this to the ARIA 1.4 milestone Jul 20, 2023
@spectranaut spectranaut self-assigned this Jul 20, 2023
@spectranaut
Copy link
Contributor

In the meeting today, we discussed being ok with prohibited all attributes, as Scott mentioned, attributes are already sort of "prohibited" in a round about way. But we would have to edit the script that generates the tables. Maybe a topic for the editors meeting, @pkra ?

@jnurthen jnurthen added the clarification clarifying or correcting language that is either confusing, misleading or under-specified label Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification clarifying or correcting language that is either confusing, misleading or under-specified
Projects
None yet
Development

No branches or pull requests

4 participants