[ARIA] Requirement to ignore landmark roles without names creates infinite loop #2404
Labels
clarification
clarifying or correcting language that is either confusing, misleading or under-specified
https://w3c.github.io/aria/#document-handling_author-errors_roles contains this requirement:
In other words: (A) Determining whether a landmark role retrieved from a content
role
attribute value must be ignored requires computing the attribute’s element accessible name. But (B) computing the element’s accessible name requires retrieving the value of the element’srole
attribute.So implementing that creates an infinite loop — going back and forth from A to B and from B to A.
This problem similar to what’s described in w3c/html-aam#570. And I believe the solution is to do what AnneVK described at w3c/html-aam#570 (comment) — that is, “give "computing an accessible name" a boolean” [that allows callers to indicate that role-computing should not be performed].
That’s essentially what I ended up needing to do in my implementation, to prevent the code from looping endlessly.
The text was updated successfully, but these errors were encountered: