praveenvijayan / grunt-html-validation

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

Support for validating HTML snippets #29

Open evanworley opened 10 years ago

evanworley commented 10 years ago

Hello,

I'm trying to validate a series of HTML files which contain mustache templates. The file isn't exactly HTML, as it simply contains a bunch of script elements with type text/template, but I'd still like to validate the contents of that. Is there a way I can specify that I'm validating HTML5 document fragments?

Thanks, Evan

praveenvijayan commented 10 years ago

No, templates are not supported.

evanworley commented 10 years ago

It might be worth considering. I don't know many interesting products that build complete stand-alone html documents. Everyone is using frameworks, templates, etc.

ojacquemart commented 10 years ago

There is a PR for validating html snippets, #14.