w3c / html-aria

ARIA in HTML
https://w3c.github.io/html-aria/
Other
181 stars 48 forks source link

align allowed nesting of roles with ARIA/HTML specs #256

Closed stevefaulkner closed 3 years ago

stevefaulkner commented 3 years ago

some roles are child presentational=true this should be reflected in allowed child content:

  1. button
  2. checkbox
  3. img
  4. meter
  5. menuitemcheckbox
  6. menuitemradio
  7. option
  8. progressbar
  9. radio
  10. scrollbar
  11. separator
  12. slider
  13. switch
  14. tab

https://w3c.github.io/aria/#tree_exclusion It makes sense in these cases to only allow text level content to be children