Why is separator allowed between menuitem, but no other "item" roles? #1889
Labels
clarification
clarifying or correcting language that is either confusing, misleading or under-specified
Role Content Model
Milestone
We got a question on axe-core asking why separator wasn't allowed on between options of a listbox (dequelabs/axe-core#3938). I think the obvious answer there is it would throw the position count of the options off, as in if I had two options with a separator between them, option two would be treated as three of three.
There's a suggestion in
aria-posinset
that separators shouldn't be counted when they're part of a menu, which makes sense. Those aren't actual menu items. But then if you test how position counting works when posinset isn't used, screen readers do seem to count the separators. There's no difference that I've seen between how separators work between menuitems, and between options. I'm not sure there is any difference for other item-roles like listitem, treeitem, or tab either.There doesn't seem to be a reason for having separators in menus, but not in other things. Which makes me wonder if either using separators between menuitems should either be deprecated, or if it should be allowed much more broadly.
The text was updated successfully, but these errors were encountered: