svenkreiss / html5validator

Command line tool to validate HTML5 files. Great for continuous integration.
MIT License
323 stars 34 forks source link

Is it possible to use html5validator without writing generated HTML files on disk (or in tmpfs)? #30

Closed int-ua closed 7 years ago

int-ua commented 7 years ago

AFAIU, localcrawl can't validate HTML on the fly, it just writes files and I can use wget as well for this. But all I want to do is to check a list of URLs on localhost, do I absolutely have to designate a filename for them with some wrapper script?

svenkreiss commented 7 years ago

Yes, you can use wget if your files don't contain any Javascript.

At the moment, you need temporary files in an intermediate step.

int-ua commented 7 years ago

FYI: I ended up using this package for launching the validation server and using https://github.com/peterbe/django-html-validator with HTMLVALIDATOR_VNU_URL = 'http://localhost:8888/'