Closed Bug 1104947 Opened 10 years ago Closed 6 years ago

Accessibility mapping for aria-current


(Core :: Disability Access APIs, defect)

Not set



Tracking Status
firefox65 --- fixed


(Reporter: davidb, Assigned: MarcoZ)


(Blocks 1 open bug)



(1 file)

Joanie/ATK is mapping to ATK_STATE_ACTIVE. What should we do for IA2?
I can't find any documentation about aria-current, even in the 1.1 draft. Link or info please?
I'm not sure whether there's a final wording but discussion is here To make long story short aria-current (boolean) is used to mark the element whose related content is visible, for example, a link within a navigation block is current when its target is shown.
Blocks: aria
Summary: ARIA mapping for aria-current → Accessibility mapping for aria-current
If aria-current and aria-activedescendant are different things then IA2 ACTIVE state cannot be used since it's for active element in the focusable container, and proposed ATK change might be unfortunate in terms of IA2 compatibility.
Joseph thinks aria-current and aria-activedescendant can be used together and used for separate stuff [1] so I think ATK_STATE_ACTIVE is rather unfortunate mapping [2].

The definition for aria-current is now reasonably stable. It's in the draft here:
If you need an AT to test with, JAWS 18 beta now supports aria-current.
FYI, NVDA now supports aria-current:
I will take this and implement according to the WAI-ARIA 1.1 CoreAM spec:

1. aria-current with a recognized value will map to the appropriate object attribute, plus ATK active state and Mac AXARIACurrent.
2. aria-current with an unrecognized value will map as if it had specified "true".
3. aria-current with false or undefined will not be mapped.

Part of the implementation is already there, the additions will be to recognize the known token values and map unknown values to true.

This will also fix bug 1365904.
Assignee: surkov.alexander → mzehe
Blocks: 1365904
(In reply to Marco Zehe (:MarcoZ) from comment #9)
> 1. aria-current with a recognized value will map to the appropriate object
> attribute, plus ATK active state and Mac AXARIACurrent.

Turns out the ATK bit has been implemented in bug 1355921.
We already mapped aria-current to the correct attribute, but we did so unconditionally unless the value was false or undefined. However, if the value was an invalid token, it would not be mapped to "true" as per spec. Now, any bogus value for aria-current will be mapped as if the author had specified "true".

This required a change in the way the ARIA attribute iterator collects attributes. It now checks against a known set of token values before mapping the attribute values. To be consistent, other ARIA attributes now also have their tokenized value sets checked.

In addition, this patch adds aria-current to the known set of attributes with rules, which causes NSAccessibilityService::MustBeAccessible to make sure an accessible gets created if aria-current is set, even if that accessible is a html:span element. This fixes bug 1365904.
Pushed by
Complete the accessibility mapping for aria-current, r=Jamie
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in before you can comment on or make changes to this bug.