As promised, I have checked in the beginnings of my HTML5 conformance
checker.  It is implemented as a filter using the existing filter
mechanism, so it is never loaded during normal parsing.  Even the
error codes/messages are defined separately.  To activate it, pass its
HTMLConformanceChecker class as the 'tokenizer' parameter to
HTMLParser, and it will unobtrusively add its behavior to the token
stream.  Full usage example in the docstring here:

http://html5lib.googlecode.com/svn/trunk/python/src/html5lib/filters/validator.py

I also checked in a simple command line wrapper, validate.py, in the
same directory as parse.py.  Like parse.py, it can take a URI, local
filename, or "-" for stdin.

-Mark


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"html5lib-discuss" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups.google.com/group/html5lib-discuss?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to