spk/validate-website — pull request #6 by mbrictson (2012-04-04 18:15:03+00:00)
Title: Add -i/--ignore-errors option to ignore certain validation errors

HTML5 validation is a moving target, and there are some aspects of HTML5 in widespread use that are not yet allowed by the validation tools.

For example the `autocorrect` and `autocapitalize` attributes on `` are critical to providing a good user experience on Mobile Safari. But these aren't yet allowed by the HTML5 validator.

Until the HTML5 validator catches up with "real world" usage, I would like a way to ignore certain validation errors when running `validate-website`. That way I don't have to deal with what I consider false-negatives.

My proposal is to add `-i` and `--ignore-errors` options, which take a regular expression. Any validation errors that match that regex will be ignored. Thus, if the site being tested has errors, but those errors are ones I choose to ignore, `validate-website` will still report "well formed? true" and return with a success exit code.

For example:

```
validate-website \
--site http://devicescout.com/ \
--ignore-errors "autocorrect|autocapitalize not allowed on element input"
```