Skip to content

[accname] Two necessary steps for using aria-label values in accessible-name computation are missing from the spec #247

@sideshowbarker

Description

@sideshowbarker

https://w3c.github.io/accname/#comp_labelledby

I have found that:

  1. The “div group explicitly labelledby self and heading” subtest at https://wpt.fyi/results/accname/name/comp_labelledby.html won’t pass unless when performing the “For each IDREF” substep of the “LabelledBy” substep in the accessible-name computation algorithm, I check for any aria-label attribute and use its value if found.
  2. The “button's hidden referenced name (visibility:hidden) with hidden aria-labelledby traversal falls back to aria-label” subtest at https://wpt.fyi/results/accname/name/comp_labelledby.html won’t pass unless when performing the “Return the accumulated text” substep of the “LabelledBy” substep in the accessible-name computation algorithm, I check to determine of the total_accumulated_text value is empty, and if so, then check for any aria-label attribute and use its value if found.

Link to the version of the specification or documentation you were looking at at.

https://w3c.github.io/accname/#comp_labelledby

Does the issue exists in the editors draft (the editors draft is the most recent draft of the specification)? Yes

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions