krautzource/aria-tree-walker

support links (properly)

pkra opened this issue · 1 comments

pkra commented

In https://w3c.github.io/aria-practices/examples/treeview/treeview-navigation.html, anchors have role=treeitem and tabindex=-1 and JS implements activation (keyDown events for enter and space).

While adding a role is up to the author (I can't see a case where it's not a must), the walker should add tabindex=-1 (and probably only the walker, to avoid disabling them if the walker fails, but again up to the author) to links in the tree and implement activation when a link is activeDescedant.