Bug 244973

Summary: AX: Invalid summary elements should not be exposed as interactive
Product: WebKit Reporter: Scott <scottaohara>
Component: AccessibilityAssignee: Tyler Wilcock <tyler_w>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, andresg_22, apinheiro, cfleizach, dmazzoni, ews-watchlist, jcraig, jdiggs, samuel_white, tyler_w, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 252223    
Attachments:
Description Flags
Patch none

Scott
Reported 2022-09-09 06:46:10 PDT
If a summary element is misused - e.g., specified outside of a details element, or multiple summary elements are specified within a details element, the errant summary element(s) are not rendered as interactive elements (good). However, Firefox still exposes them as interactive elements, which is not reflective of their behavior. For instance, the following codepen has a summary element without a details parent, as well as two summary elements within a details parent https://codepen.io/scottohara/pen/poVyeNV The invalid summary elements are visually rendered as static text. But as they are not interactive, they should be exposed as generic elements. However, VoiceOver will announce the elements no differently than correctly used summary elements. I've made a PR to HTML AAM to clarify this in the spec as well. https://github.com/w3c/html-aam/pull/436
Attachments
Patch (5.54 KB, patch)
2023-02-18 23:42 PST, Tyler Wilcock
no flags
Radar WebKit Bug Importer
Comment 1 2022-09-09 06:46:24 PDT
Radar WebKit Bug Importer
Comment 2 2022-09-09 06:47:06 PDT
Tyler Wilcock
Comment 3 2023-02-18 23:42:15 PST
EWS
Comment 4 2023-02-20 10:27:43 PST
Committed 260546@main (96801f719dfc): <https://commits.webkit.org/260546@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 465071 [details].
Note You need to log in before you can comment on or make changes to this bug.