summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_htmlparser.py
Commit message (Collapse)AuthorAgeFilesLines
* Bug #1442874: handle "<!>", the empty SGML commentGeorg Brandl2006-03-091-1/+1
|
* add tests that make sure buffer boundaries are handled properly for SGML ↵Fred Drake2004-09-081-0/+13
| | | | | | comments (see SF patch #901369)
* Whitespace normalization.Tim Peters2004-07-081-1/+1
|
* [Bug #921657] Allow '@' in unquoted HTML attributes. Not strictly legal ↵Andrew M. Kuchling2004-06-051-0/+4
| | | | according to the HTML REC, but HTMLParser is already a pretty loose parser. Reported by Bernd Zimmermann.
* Add test that demonstrates SGML-style handling of processingFred Drake2003-04-171-0/+3
| | | | instructions.
* Accept commas in unquoted attribute values.Fred Drake2003-03-141-0/+4
| | | | This closes SF patch #669683.
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* Add a test that makes sure unclosed entity references are handled consitently.Fred Drake2001-12-031-0/+6
|
* Adapt to use the test_main() approach.Fred Drake2001-09-241-1/+6
|
* HTMLParser is allowed to be more strict than sgmllib, so let's notFred Drake2001-09-041-6/+1
| | | | | change their basic behavior: When parsing something that cannot possibly be valid in either HTML or XHTML, raise an exception.
* Enhanced the test for DOCTYPE declarations, added a test for dealing withFred Drake2001-09-041-14/+23
| | | | broken declaration-like things.
* Deal more appropriately with bare ampersands and pointy brackets; thisFred Drake2001-08-201-7/+27
| | | | | | | | 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.
* Fix stupid bug: when migrating these tests from the Zope repository, theFred Drake2001-08-031-14/+20
| | | | | | | | | names of the test methods were not changed from the Zope-standard "check" names to the Python-standard "test_" names, so the tests were not actually being run. Added test of hexadecimal character references as a regression check for SF bug #445196.
* Remove a duplicate test.Fred Drake2001-07-161-1/+0
|
* Added test suite for the new HTMLParser module, originally from theFred Drake2001-05-181-0/+254
TAL/PageTemplate package for Zope. This only needed a little boilerplate change; the tests themselves are unchanged.