A node.js library for testing web responses against the w3c html validator. Inspired by <a href="https://github.com/thomasdavis/w3cjs">w3cjs</a>, but based purely on buffers.
A node.js library for testing web responses against the w3c html validator. Inspired by w3cjs, but based purely on buffers.
Use with your tests.
npm install w3c-validate
var w3c = ;w3c;
var request =express =w3c = ;var app = ;app;
Sometimes, you'll have W3C Validation errors that you just want to ignore. Once you've identified the exact error message, you can pass that to the factory method. The validator will ignore these.
var w3c =;
To run the test suite first invoke the following command within the repo, installing the development dependencies:
then run the tests: