django-dtpanel-htmltidy icon indicating copy to clipboard operation
django-dtpanel-htmltidy copied to clipboard

Does not support HTML5

Open tiktuk opened this issue 12 years ago • 7 comments

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

tiktuk avatar Jun 01 '12 17:06 tiktuk

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

mklymyshyn avatar Jun 02 '12 07:06 mklymyshyn

Yep!

`<!doctype html>

The HTML5 Herald

Test

`

tiktuk avatar Jun 17 '12 11:06 tiktuk

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

mklymyshyn avatar Jun 18 '12 19:06 mklymyshyn

Thanks for looking into it :-) .

tiktuk avatar Jun 20 '12 10:06 tiktuk

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

domguard avatar Sep 18 '12 21:09 domguard

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.

jmbowman avatar Mar 09 '14 17:03 jmbowman

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?

bburan avatar Apr 16 '14 11:04 bburan