summaryrefslogtreecommitdiffstats
path: root/Lib/HTMLParser.py
Commit message (Collapse)AuthorAgeFilesLines
* Reverting previous checkin. This breaks too much of HTMLParser to be appliedGeorg Brandl2005-09-011-1/+1
| | | | | without thought. Anyway, such malformed HTML is better handled by something like BeautifulSoup.
* bug [ 761452 ] HTMLParser chokes on my.yahoo.com outputGeorg Brandl2005-08-311-1/+1
|
* remove unnecessary override of base class methodFred Drake2004-09-081-13/+0
|
* [Bug #921657] Allow '@' in unquoted HTML attributes. Not strictly legal ↵Andrew M. Kuchling2004-06-051-1/+1
| | | | according to the HTML REC, but HTMLParser is already a pretty loose parser. Reported by Bernd Zimmermann.
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-4/+4
| | | | From SF patch #852334.
* Accept commas in unquoted attribute values.Fred Drake2003-03-141-1/+1
| | | | This closes SF patch #669683.
* Simplify code to remove an unnecessary test.Fred Drake2002-05-141-2/+1
|
* Convert to using string methods instead of the string module.Fred Drake2001-12-031-29/+25
| | | | | | In goahead(), use a bound version of rawdata.startswith() since we use the same method all the time and never change the value of rawdata. This can save a lot of bound method creation.
* Re-factor the HTMLParser class to use the new markupbase.ParserBase class.Fred Drake2001-09-241-305/+19
| | | | | Use a new internal method, error(), consistently to raise parse errors; the new base class also uses this.
* Whitespace normalization.Tim Peters2001-09-181-1/+1
|
* HTMLParser is allowed to be more strict than sgmllib, so let's notFred Drake2001-09-041-31/+16
| | | | | change their basic behavior: When parsing something that cannot possibly be valid in either HTML or XHTML, raise an exception.
* Added reasonable parsing of the DOCTYPE declaration, fixed edge casesFred Drake2001-09-041-12/+260
| | | | regarding bare ampersands in content.
* Deal more appropriately with bare ampersands and pointy brackets; thisFred Drake2001-08-201-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.
* Change some comments into docstrings.Fred Drake2001-08-031-27/+31
| | | | | | Fix handling of hexadecimal character references (legal in XHTML) so that they are properly interpreted as character references. This fixes SF bug #445196.
* Merge my changes to the offending comment with Guido's changes.Fred Drake2001-05-231-6/+10
|
* Removed incorrect comment left over from sgmllib.py.Guido van Rossum2001-05-221-7/+7
|
* A much improved HTML parser -- a replacement for sgmllib. The API isGuido van Rossum2001-05-181-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.