Closed swillner closed 9 years ago
fixes thomasdavis/w3cjs#17
Looks good to me! Would be good if we could get the doctype and encoding options back, though.
The options don't seem to be available anymore, also the "official" W3C-checker does not support them: http://validator.github.io/validator/ The encoding seems to be auto-detected, but could be provided in the HTTP header (Content-type). A workaround for the doctype could be simply prepending the document with a "<!doctype ...>"
Anyone know which semver I should bump this to?
Depends if the output has changed. If the output changed, major, otherwise minor.
My guess is that it's a minor release—the tests didn't need changing which suggests the output is the same.
I'm now getting this from gulp-w3cjs:
[15:44:49] HTML Warning: valid.html Line undefined, Column undefined: The Content-Type was “text/html”. Using the HTML parser.
[15:44:49] HTML Warning: valid.html Line undefined, Column undefined: Using the schema for HTML with SVG 1.1, MathML 3.0, RDFa 1.1, and ITS 2.0 support.
I didn't get that before. Any ideas how I can get it to go away?
That is going to be hidden by default when separating info messages (like these) callumacrae/gulp-w3cjs/pull/11
Unfortunately I didn't find anything on how to use the doctype and encoding option in the new validator interface