Description
<table>
<tr> <td>1</td> <th>Foo</th> </tr>
<tr> <td>2</td> <th>Bar</th> </tr>
</table>
As per the HTML specs, the headers have no assigned cells because The internal scanning algorithm, step 3/no header/3-4 uses Δx/Δy of 0/-1, i.e. only look on the left or above of the td
in order to find th
. But here the header is on the right.
Of course, adding a headers
attribute fixes this.
However, a colleague ran quick tests on a table like this, and it seems that ATs are actually announcing the headers when navigating the table. (at least in some UA/AT combination). This means that this is not an actual problem and should not be flagged. This also probably means that AT are doing some other sort of magic than just using the HTML table building spec 😖
Summoning @ajanec01 since you are working on this rule and may have some insights on this 🤔