summaryrefslogtreecommitdiff
path: root/Lib/HTMLParser.py
AgeCommit message (Collapse)AuthorLines
2001-09-04HTMLParser is allowed to be more strict than sgmllib, so let's notFred Drake-31/+16
change their basic behavior: When parsing something that cannot possibly be valid in either HTML or XHTML, raise an exception.
2001-09-04Added reasonable parsing of the DOCTYPE declaration, fixed edge casesFred Drake-12/+260
regarding bare ampersands in content.
2001-08-20Deal more appropriately with bare ampersands and pointy brackets; thisFred Drake-12/+12
module has to deal with "class" HTML-as-deployed as well as XHTML, so we cannot be as strict as XHTML allows. This closes SF bug #453059, but uses a different fix than suggested in the bug comments.
2001-08-03Change some comments into docstrings.Fred Drake-26/+30
Fix handling of hexadecimal character references (legal in XHTML) so that they are properly interpreted as character references. This fixes SF bug #445196.
2001-05-23Merge my changes to the offending comment with Guido's changes.Fred Drake-6/+10
2001-05-22Removed incorrect comment left over from sgmllib.py.Guido van Rossum-7/+7
2001-05-18A much improved HTML parser -- a replacement for sgmllib. The API isGuido van Rossum-0/+432
derived from but not quite compatible with that of sgmllib, so it's a new file. I suppose it needs documentation, and htmllib needs to be changed to use this instead of sgmllib, and sgmllib needs to be declared obsolete. But that can all be done later. This code was first published as part of TAL (part of Zope Page Templates), but that was strongly based on sgmllib anyway. Authors are Fred drake and Guido van Rossum.