p:accordionPanel doesn't follow WAI-ARIA Specs.
It is generating elements with [role=tablist] and [role=tabpanel] elements inside [role=tablist]. As per ARIA specs elements [role=tablist] should only allow elements with [role=tab] as a children.
Reproducer
Steps to reproduce the behavior:
Load xhtml page
Primefaces generates incorrect html element
Expected behavior
Every div with [role=tablist] shouldn't have children elements other than elements having [role=tab].Other than role=tab children are not allowed in role=tablist.
tab role
Required Owned Elements. Every tablist must have one or more tab children.
Describe the bug
p:accordionPanel
doesn't follow WAI-ARIA Specs. It is generating elements with [role=tablist] and [role=tabpanel] elements inside [role=tablist]. As per ARIA specs elements [role=tablist] should only allow elements with [role=tab] as a children.Reproducer
Steps to reproduce the behavior:
Expected behavior
Every div with [role=tablist] shouldn't have children elements other than elements having [role=tab].Other than role=tab children are not allowed in role=tablist.
https://dequeuniversity.com/rules/axe/4.9/aria-required-children
Example XHTML
generates
Expected
PrimeFaces edition
Community
PrimeFaces version
11.0.0
Theme
No response
JSF implementation
MyFaces
JSF version
2.2
Java version
8
Browser(s)
All