Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive: 'td-has-header' fails for cells having 'role=columnheader' or 'role=rowheader' as headers #888

Closed
iamrafan opened this issue May 12, 2018 · 0 comments · Fixed by #928
Labels
fix Bug fixes rules Issue or false result from an axe-core rule support

Comments

@iamrafan
Copy link
Contributor

  • Demo:
Case-1:
    <table id="table-1">
        <tr>
            <td role="columnheader">Name</td>
            <td role="columnheader">Age</td>
            <td role="columnheader">Height (cm)</td>
            <td role="columnheader">Weight (kg)</td>
        </tr>

        <tr>
            <td>Linda</td>
            <td>33</td>
            <td>169</td>
            <td>59</td>
        </tr>

        <tr>
            <td>Jack</td>
            <td>37</td>
            <td>184</td>
            <td>74</td>
        </tr>

        <tr>
            <td>Kira</td>
            <td>8</td>
            <td>120</td>
            <td>21</td>
        </tr>

        <tr>
            <td>Daniel</td>
            <td>3</td>
            <td>79</td>
            <td>14</td>
        </tr>
    </table>

Case-2:
 <table id="table-2">
        <tr>
            <td role="rowheader">Name</td>
            <td>Linda</td>
            <td>Jack</td>
            <td>Kira</td>
            <td>Daniel</td>
        </tr>

        <tr>
            <td role="rowheader">Age</td>
            <td>33</td>
            <td>37</td>
            <td>8</td>
            <td>3</td>
        </tr>

        <tr>
            <td role="rowheader">Height (cm)</td>
            <td>169</td>
            <td>184</td>
            <td>120</td>
            <td>79</td>

        </tr>

        <tr>
            <td role="rowheader">Weight (kg)</td>
            <td>59</td>
            <td>74</td>
            <td>21</td>
            <td>14</td>
        </tr>
    </table>
axe-core version: 3.0.0-beta.3
axe-Coconut version: 3.3.0-beta.0
@WilcoFiers WilcoFiers added fix Bug fixes support labels May 13, 2018
@WilcoFiers WilcoFiers added the rules Issue or false result from an axe-core rule label Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fixes rules Issue or false result from an axe-core rule support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants