Skip to content

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

Closed

Description

@LaurenceRLewis

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.

Activity

  1. pkra commented on Nov 17, 2021

    @pkra
    Member

    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.)

  2. modified the milestones: ARIA 1.4, ARIA 1.3 on Nov 17, 2021
  3. pkra commented on Nov 18, 2021

    @pkra
    Member

    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.)

  4. scottaohara commented on Mar 4, 2022

    @scottaohara
    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.

  5. added a commit that references this issue on Mar 5, 2022
    7225167
  6. self-assigned this
    on Mar 5, 2022
  7. added a commit that references this issue on Apr 15, 2022
    87d775b
  8. added a commit that references this issue on Jul 14, 2022
    46ba876
  9. added a commit that references this issue on Oct 10, 2023
    3b1ee54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions