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
<rdar://problem/99743056>
<rdar://problem/99743073>
Created attachment 465071 [details] Patch
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].