yargalot / gulp-accessibility

Gulp plugin for AccessSniff
48 stars 12 forks source link

Server side code throwing false positives #24

Open puzumaki opened 6 years ago

puzumaki commented 6 years ago

Managing a theme for Drupal written in PHP, and the PHP syntax is throwing false positives for accessibility errors. For instance: <?php print $title; ?>

Throws a "Heading tag found with no content" error like this: <h2 class="title" id="page-title"><!--?php print $title; ?--></h2>

Does an option exist that marks this code syntax as content, or will we have to wade through hundreds of false positives?