Bug 148646

Summary: AX: AXGroup role assigned to div with tabindex of 0 or -1
Product: WebKit Reporter: Mark Sadecki <msadecki>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: cfleizach, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Mac   
OS: OS X 10.10   
Attachments:
Description Flags
Demonstrates unexpected role assignment when tabindex of 0 or -1 is added to div none

Mark Sadecki
Reported 2015-08-31 14:31:48 PDT
Any div with a tabindex value of 0 or 1 gets an accessibilityRole of Group. AXWebArea is expected. See test file for example and steps to replicate.
Attachments
Demonstrates unexpected role assignment when tabindex of 0 or -1 is added to div (2.21 KB, text/html)
2015-08-31 14:33 PDT, Mark Sadecki
no flags
Radar WebKit Bug Importer
Comment 1 2015-08-31 14:32:39 PDT
Mark Sadecki
Comment 2 2015-08-31 14:33:04 PDT
Created attachment 260318 [details] Demonstrates unexpected role assignment when tabindex of 0 or -1 is added to div
chris fleizach
Comment 3 2015-09-02 09:39:35 PDT
This is actually expected behavior. the idea is that if someone has made an object keyboard focusable, we always want to make sure that it appears in the AX hierarchy so VoiceOver can focus on it. without more info about what kind of object it is, it becomes an AXGroup. you can assign another role="" to that object if you need
Note You need to log in before you can comment on or make changes to this bug.