diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2007-03-06 14:43:00 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2007-03-06 14:43:00 (GMT) |
commit | ab8a6bba250b35ea87d8976e9cd4dd74e57cfd0a (patch) | |
tree | 6e581be3225031d7cc1e1267881a64cca00243a7 /Lib/test | |
parent | ff432e6f4ad8e4430ce984ec883a3d038e1c7ab9 (diff) | |
download | cpython-ab8a6bba250b35ea87d8976e9cd4dd74e57cfd0a.zip cpython-ab8a6bba250b35ea87d8976e9cd4dd74e57cfd0a.tar.gz cpython-ab8a6bba250b35ea87d8976e9cd4dd74e57cfd0a.tar.bz2 |
Patch #912410: Replace HTML entity references for attribute values
in HTMLParser.
Diffstat (limited to 'Lib/test')
-rwxr-xr-x | Lib/test/test_htmlparser.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_htmlparser.py b/Lib/test/test_htmlparser.py index 54b90cd..229bbed 100755 --- a/Lib/test/test_htmlparser.py +++ b/Lib/test/test_htmlparser.py @@ -309,6 +309,11 @@ DOCTYPE html [ ("endtag", "script"), ]) + def test_entityrefs_in_attributes(self): + self._run_check("<html foo='€&aa&unsupported;'>", [ + ("starttag", "html", [("foo", u"\u20AC&aa&unsupported;")]) + ]) + def test_main(): test_support.run_unittest(HTMLParserTestCase) |