Test
django-dtpanel-htmltidy
django-dtpanel-htmltidy copied to clipboard
Does not support HTML5
HTML5 support would be great.. Right now it reports usage of tags such as article
and header
as errors.
Looks like tidy not support it yet. May you provide little snippet for testing? thanks
Yep!
`<!doctype html>
Looks like pytidylib isn't supported for a while. I'll think how to work without it.
Thanks for looking into it :-) .
There's an open API service that handles HTML5 here : http://wiki.whatwg.org/wiki/Validator.nu_Web_Service_Interface requires a connection, but it's also a server that can be installed on localhost:8888
The tidy-htm5 fork works:
http://w3c.github.io/tidy-html5/
It hasn't been updated in a couple of years, but there are multiple more recent forks of it. I just created one that incorporates what seemed like the most useful features that have been added in other forks:
https://github.com/safarijv/tidy-html5
It uses the same library name and interface as the original tidy, so pytidylib works fine with it.
I installed your tidy-html5 fork and then ran pip uninstall pytidylib followed by pip install pytidylib; however, I'm still getting errors on HTML5 validation. Are there any other steps I should take to get it working?