What fresh hell is THIS now? - Patrick Lauke
aria-setsize
an attribute on individual items and not on containers?
[karlgroves] The explanation is that it is needed for ATs to inform users that this is “Option x of n”. But that’s silly because all AT should need to do is count those children on the parent (or, as you say, derive it from the parent if aria-setsize
is on the parent
BTW: keep in mind that aria-setsize
and aria-posinset
are unnecessary if all of the items are already present in the DOM. They’re most often used in things where the options come from XHR
aria-setsize
and aria-posinset
aren’t supported with Safari + VoiceOver.
optgroup
when constructing a listbox
in HTML? Essentially the same as depicted in the following screen grabbed <select multiple />
element. Where "Group 1" visually acts a grouping/heading/label for "Option 1.1", and "Group 2" acts as a grouping/heading/label for "Option 2.1" and "Option 2.2"
`\
[sitaggart] ```
<select multiple="" style="width:200px; height: 100px">
<optgroup label="Group 1">
<option>Option 1.1</option>
</optgroup>
<optgroup label="Group 2">
<option>Option 2.1</option>
<option>Option 2.2</option>
</optgroup>
<optgroup label="Group 3" disabled="">
<option>Option 3.1</option>
<option>Option 3.2</option>
<option>Option 3.3</option>
</optgroup>
</select>
```
<h*>
elements but not sure if it’s okay to stick those inside something with role=“listbox”
. I see that Twitter’s search typeahead uses aria-describedby
on each option to associate it with its heading.
presentation
?