I know that WCAG 2.0 allows tables for layout, yet for some reason achecker keeps giving me the following error:
Check 245: Data table with more than one row/column of headers does not use id and headers attributes to identify cells
Repair: Add id and headers attributes to table cells so they identify the cells that relate to the headers.
HTML code:
<table id="mainTable">
<tbody>
<tr>
<th id="h150" scope="row">Row 1</th>
<td headers="h150" colspan="3">Value 1</td>
</tr>
<tr>
<th id="h151" scope="row">Row 2_1</th>
<td headers="h151">Value 2</td>
<th id="h1511" scope="row">Row 2_2</th>
<td headers="h1511">
<table>
<tr>
<td>Inner 1</td>
<td>Inner 2</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
If I remove that inner layout table, validation passes. Why do I get this error with the nested layout table?
Any suggestions would be appreciated.