praveenvijayan / grunt-html-validation

W3C html validaton grunt plugin. Validate all files in a directory automatically.
MIT License
75 stars 39 forks source link

Ignore all warnings #58

Open lawlesscreation opened 10 years ago

lawlesscreation commented 10 years ago

It would be nice if there was an option to ignore all warnings. At present warnings like this:

"The date input type is not supported in all browsers. Please be sure to test, and consider using a polyfill."

Cause the task to think there was an error and thus return fail (assuming failHard is on). I know this can be added to the relaxerror option, but it feels like warnings from the validation service should not be considered errors. An option like ignoreWarnings: true would be nice or even better, if warning are shown but do not cause it to fail - even when failHard is true.

Thanks!

elchiconube commented 9 years ago

Yes please, it would be nice!