sax = xml.sax
parser = sax.make_parser()
print parser
print "Parsing good.html"
parser.parse( "TestData/good.html" )
print "Parsing bad.html"
===
But seriously folks - I've found a 100% bugs in the W3C HTML5 validator - it doesn't catch a certain unclosed tag. It also doesn't catch a bad entity, but I don't know maybe HTML 5 is OK with ampersands that mark the start of a query parameter.
I'll report this later today.
Nick
Password
Name
Subject
Comment
Plain Old Text HTML Formatted Extrans (html tags to text) Code
Allowed HTML <b|i|p|br|a|ol|ul|li|dl|dt|dd|em|strong|tt|blockquote|div|ecode|quote|sup|sub|abbr|sarc|sarcasm|user|spoiler|del>
URLs <URL:http://example.com/> will auto-link a URL
<URL:http://example.com/>
Important Stuff
If you are having a problem with accounts or comment posting, please yell for help.
import xml.sax
sax = xml.sax
parser = sax.make_parser()
print parser
print "Parsing good.html"
parser.parse( "TestData/good.html" )
print "Parsing bad.html"
parser.parse( "TestData/good.html" )
===
But seriously folks - I've found a 100% bugs in the W3C HTML5 validator - it doesn't catch a certain unclosed tag. It also doesn't catch a bad entity, but I don't know maybe HTML 5 is OK with ampersands that mark the start of a query parameter.
I'll report this later today.
Post Comment