mklymyshyn / django-dtpanel-htmltidy

Custom panel form Django Debug Toolbar which display HTML Validation errors and warnings
BSD 3-Clause "New" or "Revised" License
45 stars 8 forks source link

Does not support HTML5 #6

Open tiktuk opened 12 years ago

tiktuk commented 12 years ago

HTML5 support would be great.. Right now it reports usage of tags such as article and header as errors.

mklymyshyn commented 12 years ago

Looks like tidy not support it yet. May you provide little snippet for testing? thanks

tiktuk commented 12 years ago

Yep!

`<!doctype html>

The HTML5 Herald

Test

`
mklymyshyn commented 12 years ago

Looks like pytidylib isn't supported for a while. I'll think how to work without it.

tiktuk commented 12 years ago

Thanks for looking into it :-) .

domguard commented 12 years ago

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

jmbowman commented 10 years ago

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.

bburan commented 10 years ago

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?