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.
(Score: 0) by Anonymous Coward on Sunday September 23 2018, @12:20AM
Your crowning achievement that qualifies you as a coder is a bunch of HTML files?
Markup is not code. Where's your backend code, or any actual code at all, containing instructions in a programming language?
You're a fraud, Crawford. You are not a coder. Your credibility is nonexistent.
Fuck MDC