I have a data table that looks like this:
<table><thead>
<tr>
<th><input type="checkbox" /></th>
<th scope="col">Foo</th>
<th scope="col">Bar</th><tr>
</thead>
<tbody>
<tr><td><input type="checkbox" /></td><td scope="row">a</td><td>b</td></tr>
<tr><td><input type="checkbox" /></td><td scope="row">c</td><td>d</td></tr>
</tbody></table>
I want the checkbox in the header to select all the checkboxes in the body. I've written the Javascript to do the select and it works fine. However, in IE7 and IE8 (maybe other browsers, but we're not required to support anything else), the checkbox in the header never gets tab focus, so we're failing 508.
Is there a way to handle this without setting tabindexes on everything?