Accessibility Tree for keyboard and screen reader support #1032
linkdotnet
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
Just glanced over this. It seems very related to the "testing library" API we are considering. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is an accessibility tree?
Source
Basically a new representation of the DOM with a focus on accessibility. The idea would be to add such a tree with a new function
GetAccessibilityTree
to make it easier for users to traverse this tree.Motivation
The motivation stems from the fact that we want to make it easier for a user to have the representation. Furthermore adaptive technologies will become more prominent in the future. Users might want to have such requirements tested with a dedicated set of APIs.
Why does it need a new function instead of using
cut.Find().GetAttributes
?Implemenation
We would sit on top of either
IElement
orIRenderComponent
(where this would just get theINodeList
and pass it to the former one).Accessbility node could have properties like (not sure if they are complete :D):
Alone with that, the user might have a model (s)he can work with. We could provide further API's to make it easier:
Considerations
Probably that doesn't have to be built in
bunit
per-sé. It could be an extension package forAnglesharp
, or it could sit on top ofIRenderComponent
. So it doesn't have to run directly under the "bUnit" brand if you want to say so.Beta Was this translation helpful? Give feedback.
All reactions