Open domenic opened 8 years ago
What in https://a11y-api.github.io/a11y-api/spec/ returns this object?
https://a11y-api.github.io/a11y-api/spec/#relations; the structure for defining these attributes is a bit in flux (using a table instead of IDL, currently).
I see. One way to do this would be to just have methods. E.g., have children()
and make it return a snapshot (sequence<AccessibleNode>
). That's what we would do for new APIs.
This deserves some discussion from people like @annevk. In general we are trying to move away from these unfortunate legacy types. However, this case seems hard to do otherwise.
Some alternatives I can imagine:
FrozenArray<AccessibleNode>
that returns a new value each time the child list changes.children
be aFrozenArray<AccessibleNode>
and move all manipulation methods to theAccessibleNode
(probably suffixed withChild
).Neither of these are great.