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

Question: role presentation on non-semantic elements - why? #1647

Closed
LaurenceRLewis opened this issue Nov 16, 2021 · 3 comments · Fixed by #1699
Closed

Question: role presentation on non-semantic elements - why? #1647

LaurenceRLewis opened this issue Nov 16, 2021 · 3 comments · Fixed by #1699
Assignees
Milestone

Comments

@LaurenceRLewis
Copy link
Contributor

LaurenceRLewis commented Nov 16, 2021

In the ARIA 1.2 Spec for Role Presentation Example 9 has the following example:
<!-- 3. Depending on styling and other factors, this role declaration is redundant in some implementations. --> <span role="presentation"> Sample Content </span>

I am finding a lot of seemingly unnecessary uses of role presentation/none on non-semantic elements in the wild and when accessibility testing. The 'Depending on styling and other factors' has no further explanation as to why styling or factors would require this role.

I have read that the Role Presentation/None can be used as a bug fix, but can't remember what it fixes.

I'd appreciate your opinion on this.

@pkra
Copy link
Member

pkra commented Nov 17, 2021

According to git, this line has not been changed in 7 years, so it's likely out of date. (Part 2 of that example is now also out of date since there's now a generic role.)

@jnurthen jnurthen modified the milestones: ARIA 1.4, ARIA 1.3 Nov 17, 2021
@pkra
Copy link
Member

pkra commented Nov 18, 2021

From today's call: the third example is related to #1454 -- with some patterns (e.g., those needing aria-level), elements in between parent and children roles might require an explicit role=presentation. Otherwise, AT might get tripped up. [I hope I captured the group's discussion correctly.]

Once #1454 is done (on track for ARIA 1.3), we might be able to simply remove this. We might want to keep a note on the more complex situation as well.

(And again, the second example needs revisions as well.)

@scottaohara
Copy link
Member

Seems to me we should clean up this example, if not for the fact that a span in aria 1.2 is noted as an HTML equivalent for role=generic, so this example is now not only unclear, but outdated in its accuracy.

scottaohara added a commit that referenced this issue Mar 5, 2022
closes #1647

- removes examples which are unclear without including notes about some current AT behaviors.
- updates reference to the fact that a `span` is a type of `generic`.
- some minor editorial updates to surrounding content
@scottaohara scottaohara self-assigned this Mar 5, 2022
pkra pushed a commit that referenced this issue Apr 15, 2022
closes #1647

- removes examples which are unclear without including notes about some current AT behaviors.
- updates reference to the fact that a `span` is a type of `generic`.
- some minor editorial updates to surrounding content
pkra pushed a commit that referenced this issue Jul 14, 2022
closes #1647

- removes examples which are unclear without including notes about some current AT behaviors.
- updates reference to the fact that a `span` is a type of `generic`.
- some minor editorial updates to surrounding content
jnurthen pushed a commit that referenced this issue Oct 10, 2023
closes #1647

- removes examples which are unclear without including notes about some current AT behaviors.
- updates reference to the fact that a `span` is a type of `generic`.
- some minor editorial updates to surrounding content
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