Bug 108979

Summary: details element not exposed as disclosure widget to accessibility APIs
Product: WebKit Reporter: James Craig <jcraig>
Component: AccessibilityAssignee: Joshua Hoffman <jhoffman23>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, andresg_22, apinheiro, Callum.McMenamin, cfleizach, charlie, damien, darin.senneff, dmazzoni, ews-watchlist, faulkner.steve, jcraig, je00julie.kim, jhoffman23, samuel_white, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 252223    
Attachments:
Description Flags
details element test case
none
Patch
none
Patch none

Description James Craig 2013-02-05 14:02:07 PST
Created attachment 186698 [details]
details element test case

The generated disclosure widget in the <details> element is not accessible.

http://www.w3.org/html/wg/drafts/html/master/interactive-elements.html#the-details-element
Comment 1 Radar WebKit Bug Importer 2013-04-15 23:58:27 PDT
<rdar://problem/13661104>
Comment 2 Steve Faulkner 2015-11-19 03:46:35 PST
any update on this?

in Safari 8.08 still not exposed as disclosure triangle 

acc API mapping spec links:

open attribute: http://w3c.github.io/aria/html-aam/html-aam.html#att-open-details
summary element: http://w3c.github.io/aria/html-aam/html-aam.html#el-summary
details element: http://w3c.github.io/aria/html-aam/html-aam.html#el-details
Comment 3 Steve Faulkner 2015-11-19 05:21:26 PST
(In reply to comment #2)
> any update on this?
> 
> in Safari 8.08 still not exposed as disclosure triangle 
> 
> acc API mapping spec links:
> 
> open attribute:
> http://w3c.github.io/aria/html-aam/html-aam.html#att-open-details
> summary element: http://w3c.github.io/aria/html-aam/html-aam.html#el-summary
> details element: http://w3c.github.io/aria/html-aam/html-aam.html#el-details

tested in Safari 9.1 
noted that summary has subrole of AXsummary and now identified as group, no indication it is interactive or of collapsed/expanded state.
Comment 4 James Craig 2016-03-29 03:14:01 PDT
Possibly needs to be duped out to bug 131111
Comment 5 Jeongeun Kim 2017-06-20 01:40:22 PDT
Hi,
I have a question summary role on Mac.
From the spec, https://www.w3.org/TR/html-aam-1.0/#el-summary, it should be mapped to AXDisclosureTriangle but I found WebKit assigns AXButton to role for summary.

I tried to change it to AXDisclosureTriangle at createAccessibilityRoleMap() in WebAccessibilityObjectWrapperMac.mm and expanded or collapsed states were not updated with AXDisclosureTriangle role.

It seems Mac doesn't support expanded or collapsed state with AXDisclosureTriangle.
Could you check it?
Thanks,
Comment 6 Karl Dubost 2023-02-14 23:50:30 PST
*** Bug 204628 has been marked as a duplicate of this bug. ***
Comment 7 Karl Dubost 2023-02-14 23:51:56 PST
*** Bug 241401 has been marked as a duplicate of this bug. ***
Comment 8 Karl Dubost 2023-02-14 23:52:48 PST
*** Bug 247512 has been marked as a duplicate of this bug. ***
Comment 9 Darin Senneff 2023-06-27 13:11:31 PDT
Any update on this? Still present on iOS Safari 16.5 + VoiceOver. 

I consider this a pretty severe bug. When encountering a details/summary element, VO does not announce any kind of role, state, or any indication that the element can be interacted with. Many VO users will be blocked from the contents within if they don’t happen to guess that it can be expanded.
Comment 10 Joshua Hoffman 2023-11-03 16:56:42 PDT
Created attachment 468479 [details]
Patch
Comment 11 Joshua Hoffman 2023-11-03 21:04:17 PDT
Created attachment 468482 [details]
Patch
Comment 12 EWS 2023-11-04 10:13:45 PDT
Committed 270231@main (bb55be859f77): <https://commits.webkit.org/270231@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 468482 [details].