html-validator
html-validator copied to clipboard
A Node.js module for validating html using validator.w3.org/nu
# Versions **html-validator**: 5.1.17 **Node**: 12.16.1 # Problem When validating the string `"Ü"` with the following options, an error is returned: ```js await validator({ validator: 'WHATWG', "Ü", isFragment: true })...
`html-validator` is outputting more and more errors, I suppose it depends on the overloading of the main server at W3.org ``` at Request._callback (/home/jfolpf/autocosts/node_modules/html-validator/lib/validate.js:15:23) at Request.self.callback (/home/jfolpf/autocosts/node_modules/html-validator/node_modules/request/request.js:185:22) at Request.emit (events.js:223:5)...
Thank you for this package. I'm just curious whether this returns CSS validation errors as well as HTML or only HTML?
Hi, nice lib. In my opinion `OptionsForHtmlFileAsValidationTargetAndObjectAsResult` and `OptionsForExternalUrlAsValidationTargetAndObjectAsResult` should mark `format` as required, even if it contains only single value, because typings are not fulfilled in below case: ```typescript...
Not sure if this is possible, but I'd love to be able to use this to validate HTML fragments as well as complete documents. Great module, by the way —...
The Web Service docs suggest adding `Content-Encoding: gzip` and `Accept-Encoding: gzip` headers: https://github.com/validator/validator/wiki/Service-%C2%BB-HTTP-interface#compression. Are you open to a PR adding these?
It would be great to be able to use regular expressions (or even functions) as `ignore` values.
Right now the default format is JSON; but the response is not *parsed* as JSON unless you specifying `options.format = 'json'`. Are you open to a PR changing this, so...
Right now it looks like the `ignore` option only works with `text` responses: https://github.com/zrrrzzt/html-validator/blob/master/lib/setup-options.js#L7. It could work just as well with JSON responses, I think, if it were checked against...
Hi @zrrrzzt, big fan of your work here! Lately we've used your npm package, mainly the integration of `html-validate`. We've come across a few issues where the used version of...