thomasdavis / w3cjs

A npm package for testing files or url's again the wc3 validator
http://thomasdavis.github.com/w3cjs/
The Unlicense
159 stars 25 forks source link

local files validate, via URL, response is a redirect to main validator page #2

Closed JohnAllsopp closed 11 years ago

JohnAllsopp commented 11 years ago

Been experimenting, and while I can validate a local file, remote files return {} for json, and a redirect to the main validator page for HTML. But, if I change the w3cCheckUrl to include ?uri= + url, I get validated page results. I can also get json if I add &output=json to the uri

This is simply using any URL and the simple example

A problem with superagent?

thanks!

john

thomasdavis commented 11 years ago

All good, thanks guys!

JohnAllsopp commented 11 years ago

good stuff!