Open Bug 1175335 Opened 7 years ago Updated 7 years ago

Distinguish msqrt from mroot

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

ASSIGNED
Tracking Status
firefox41 --- affected

People

(Reporter: fredw, Assigned: fredw, NeedInfo)

References

Details

Attachments

(1 file)

Currently both <msqrt> and <mroot> use the role ATK_ROLE_MATH_ROOT, so we can not distinguish

<msqrt><mi>x</mi><mi>N</mi></msqrt>

from

<mroot><mi>x</mi><mi>N</mi></mroot>

As an interim solution, Joanie proposes to add a "subrole" object attribute for that purpose until we have actual subroles in ATK.
I'd suggest to expose either
1) rootindex relation which is null in case of msqrt or
2) rootindex object attribute which equals 2 in case of msqrt, and missed in case of mroot

I think 1st is nicer since it's semantic/self-descriptive and not hierarchy dependent approach. It's also close to OS X a11y API.
Summary: Distinguish msqrt from mroot by an object attribute → Distinguish msqrt from mroot
This is version 1, but anyway we finally don't need to fix that bug now and we will probably eventually use relations to make navigation easier.
Assignee: nobody → fred.wang
Status: NEW → ASSIGNED
@Joanie: In bug 1176123, we'll add a relation NODE_PARENT_OF on the <mroot> but not on <msqrt>. I believe this is enough to distinguish these two elements. Or do we need to add anything else?
Flags: needinfo?(jdiggs)
You need to log in before you can comment on or make changes to this bug.