8000 ARIA 1.2 mapping of div/span to role=generic causes lots of new failures · Issue #1995 · act-rules/act-rules.github.io · GitHub
[go: up one dir, main page]

Skip to content

ARIA 1.2 mapping of div/span to role=generic causes lots of new failures #1995

@dd8

Description

@dd8

The ARIA required context role only considers parent/child relations in the accessibility tree
https://www.w3.org/WAI/standards-guidelines/act/rules/ff89c9/proposed/

With ARIA 1.1 this means the following code passed the rule because the inner div, between list and listitem, had no implicit role and wasn't part of the ARIA tree:

<div role="list">
  <div>
	<div role="listitem">List item 1</div>
	<div role="listitem">List item 2</div>
  <div>
</div>

Edit: in the ARIA 1.1 draft of AAM div was specified as:

No corresponding role
May not have an accessible object if has no semantic meaning

However HTML AAM was updated in w3c/html-aam#348 to map div/span to the new ARIA 1.2 generic role.

That means both these lists produce an identical ARIA tree and both now fail the rule:

<div role="list">
  <div>
	<div role="listitem">List item 1</div>
	<div role="listitem">List item 2</div>
  <div>
</div>

<div role="list">
  <div role="generic">
	<div role="listitem">List item 1</div>
	<div role="listitem">List item 2</div>
  <div>
</div>

There will be a lot of pages using divs/spans without roles that passed previously - including many of the ARIA patterns at https://www.w3.org/WAI/ARIA/apg/patterns/.

These haven't suddenly become less accessible - so I think the rule needs to change.

This is related to #1985 and #1990

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0