lpelypenko / axe-html-reporter

Creates easy to read HTML file from axe-core® accessibility results object
MIT License
30 stars 22 forks source link

Example html report contains extraneous closing tags #19

Closed fniessink closed 3 weeks ago

fniessink commented 2 years ago

The example report contains extraneous closing</tbody> tags in the tables with passed, inapplicable, and all rules. Excerpt:

<table class="table table-bordered">
    <thead>
        <tr>
            <th style="width: 5%">#</th>
            <th style="width: 50%">Description</th>
            <th style="width: 20%">Axe rule ID</th>
            <th style="width: 15%">WCAG</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <th scope="row">1</th>
            <td>accesskey attribute value must be unique</td>
            <td>accesskeys</td>
            <td>Best practice</td>
        </tr>
    </tbody>
        <tr>
            <th scope="row">2</th>
            <td>Active &lt;area&gt; elements must have alternate text</td>
            <td>area-alt</td>
            <td>WCAG 2 Level A, WCAG 1.1.1, WCAG 2.4.4, WCAG 4.1.2</td>
        </tr>
    </tbody>
        <tr>
            <th scope="row">3</th>
            <td>Elements must only use allowed ARIA attributes</td>
            <td>aria-allowed-attr</td>
            <td>WCAG 2 Level A, WCAG 4.1.2</td>
        </tr>
    </tbody>
    ...
</table>
lpelypenko commented 3 weeks ago

Hello @fniessink,

Really appreciate reporting the issue.

It was fixed in v2.2.7 release.

If you want to see what new version may look like, please check the latest GitHub pages that publish the latest example report generated by axe-html-reporter: https://lpelypenko.github.io/axe-html-reporter/

lpelypenko commented 3 weeks ago

Hello @fniessink, The release v2.2.7 introduced a bug that was fixed in https://github.com/lpelypenko/axe-html-reporter/releases/tag/v2.2.9 release. Please install the latest v2.2.9 to see the updated version with changes related to your reported issue.