You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 22, 2025. It is now read-only.
If AccName were to pass these tests, its WPT performance should be 100%.
I think the problem here is that accname is visiting the same target <input /> Node twice here, adding it to the list of context.visitedNodes only when it traverses this <input /> for the second time.
The spec is in large part responsible for this issue, specifying only in step 2F that Each node in the subtree is consulted only once.. In fact it would appear that no node should ever be visited more than once during accessible name computation, in which case the spec should be re-worded to reflect this.
A Potential Solution
This could be implemented by keeping track of any node that is passed to computeTextAlternative() and ensuring that a node is only processed if it has never been seen before.
This would probably also be a good opportunity to merge context.inherited.visitedNodes and context.inherited.nodesUsed.