Open Bug 1105415 Opened 10 years ago Updated 3 months ago

img with role=button does not get correct action behavior

Categories

(Core :: Disability Access APIs, defect)

defect

Tracking

()

People

(Reporter: eeejay, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

I would expect it to behave like any other inline element. But instead it seems like it does not get an attributed action.
This manifests differently in two cases:

1. A standalone img[role=button] remains with an action count of 0. In contrast, a standalone span[role=button] gets an action 'press'.

(the more realistic problem)
2. An img[role=button] that is a descendant of a container with a click listener behaves like a LinkableAccessible, and inherits the actions of the ancestor. In the meantime, a similar ancestored span[role=button] will get an action of 'press', and the target of the DOM click event will be the span.

I think this is all due to the fact that ImageAccessible is considered a leaf and is a subclass of LinkableAccessible, while span is not.
Attached patch Test caseSplinter Review
It's because LinkableAccessible never falls back into Accessible which provides ARIA support, ActionCount and ActionNameAt methods should be fixed.
(In reply to alexander :surkov from comment #2)
> It's because LinkableAccessible never falls back into Accessible which
> provides ARIA support, ActionCount and ActionNameAt methods should be fixed.

and DoAction.
DoAction seems flexible enough to work, I wouldn't swear on it though.
Severity: normal → S3

This appears to be working as expected now. Leaving open to get the test case added.

Severity: S3 → S4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: