alex-seville / blanket

blanket.js is a simple code coverage library for javascript. Designed to be easy to install and use, for both browser and nodejs.
http://blanketjs.org
Other
1.41k stars 177 forks source link

mixed case data-cover- options not detected #551

Open ahamid opened 8 years ago

ahamid commented 8 years ago

I noticed my data-cover-testReadyCallback attribute option was not being detected because when the following line is evaluated, the es.nodeName is lowercase data-cover-testreadycallback

if (es.nodeName === "data-cover-testReadyCallback"){

It may be a good idea to perform a case-insensitive check.

alex-seville commented 8 years ago

I think I merged your PR that fixes this