@mattwilcox I think in cases where you do not need labels (or you don't have them) and it exists on html a long ago. Also the CSS posibilities.
Differences:
optgroup:
Permitted parents
A <select> element.
Implicit ARIA role
group
Permitted ARIA roles
No role permitted
hr:
Permitted parents
Any element that accepts flow content.
Implicit ARIA role separator
Permitted ARIA roles presentation or none
@pablolarah Hmmm, maybe. My concern with the new stuff is that it'll lead to people grouping options purely visually. I can't think of a valid reason why you'd want to separate options other than because they belong in groups.
Add comment