Open Bug 1732312 Opened 4 years ago Updated 4 years ago

aria-roledescription should not be unconditionally exposed

Categories

(Core :: Disability Access APIs, enhancement)

enhancement

Tracking

()

People

(Reporter: jdiggs, Unassigned)

References

(Blocks 1 open bug)

Details

Steps to reproduce:

  1. Load data:text/html,<div aria-roledescription="button">...</div>
  2. Use a platform accessibility inspector (Accerciser, XCode's Accessibility Inspector) to examine the properties of the div.

Expected results: The "button" role description would not be exposed (see spec text below).

Actual results: The "button" role description is exposed (via object attribute in Linux, as AXRoleDescription on macOS)

Spec text:

User agents MUST NOT expose the aria-roledescription property if any of the following conditions exist:

  1. The element to which aria-roledescription is applied does not have a valid WAI-ARIA role or does not have an implicit WAI-ARIA role semantic.
  2. The element to which aria-roledescription is applied has an explicit or implicit WAI-ARIA role where aria-roledescription is prohibited.
  3. The value of aria-roledescription is empty or contains only whitespace characters.

S4 because this is largely about correctness and shouldn't hurt users.

Blocks: aria
Severity: -- → S4
Type: defect → enhancement
You need to log in before you can comment on or make changes to this bug.