Skip to content

syntax error causes failure because of - in html-validation #80

@NYCJacob

Description

@NYCJacob

w3c-validation fork plugin does not work. grunt and my editor throw syntax errors because of the - in the plugin names. I was using the original html-validation plugin without problems. This is my config stanza.
html-validation: {
options: {
reset: grunt.option('reset') || false,
stoponerror: false,
relaxerror: ["Bad value X-UA-Compatible for attribute http-equiv on element meta."] //ignores these errors
},
files: {
src: '*.html'
}
}

This is the error message:
Loading "Gruntfile.js" tasks...ERROR

SyntaxError: Unexpected token -

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions