Introduction
MSAA doesn't have a way to expose object attributes. In Gecko some object attributes are still exposed via the text in IAccessible::getDescription(). This technique is only used to support group attributes. This is a terrible hack that Mozilla still supports because older screen readers depend on it, but in the future it may be removed in favor of IA2 object attributes and groupPosition().
- if accessible object has group attributes and children then the accDescription is in the format of "L:level, :posinset of :setsize with :childcount"
- if accessible object has group attributes but hasn't children then the accDescription is in the format of "L:level, :posinset of :setsize"
- if accessible object has
posinset
andsetsize
attributes then the accDescription is in the format of ":posinset of :setsize" - otherwise a normal description is used