[Python-checkins] python/dist/src/Lib/test test_htmlparser.py, 1.11, 1.12

akuchling at users.sourceforge.net akuchling at users.sourceforge.net
Sat Jun 5 11:31:48 EDT 2004


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13120/Lib/test

Modified Files:
	test_htmlparser.py 
Log Message:
[Bug #921657] Allow '@' in unquoted HTML attributes.  Not strictly legal according to the HTML REC, but HTMLParser is already a pretty loose parser.  Reported by Bernd Zimmermann.

Index: test_htmlparser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_htmlparser.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** test_htmlparser.py	17 Apr 2003 22:19:26 -0000	1.11
--- test_htmlparser.py	5 Jun 2004 15:31:45 -0000	1.12
***************
*** 205,208 ****
--- 205,212 ----
              ("starttag", "e", [("a", "rgb(1,2,3)")]),
              ])
+ 	# Regression test for SF bug #921657.
+         self._run_check("<a href=mailto:xyz at example.com>", [
+             ("starttag", "a", [("href", "mailto:xyz at example.com")]),
+             ])
  
      def test_attr_entity_replacement(self):




More information about the Python-checkins mailing list