validator/grunt-html

Ignore using Regex literal or String literal as exampled in README doesn't work

jaredmcateer opened this issue · 2 comments

Attempting to use a String literal or Regex literal for ignoring errors throws the following error:

all: {
    options: {
        ignore: 'The “clear” attribute on the “br” element is obsolete. Use CSS instead.'
    },
    src: "html4.html"
}

Fatal error: Object Attribute "The 'clear' attribute on the 'br' element is obsolete. Use CSS instead.” at this point. has no method 'every'

The ignore rules must be wrapped in an array, every if just one.

This is fixed in #45 and will presumably be in the next release.

Sorry I didn't check include the PRs when I searched for an existing issue.