diff options
author | Fred Drake <fdrake@acm.org> | 2006-06-14 05:04:47 +0000 |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2006-06-14 05:04:47 +0000 |
commit | a16393efb779b62f9114c06852947e92dd9d155f (patch) | |
tree | 4e87638c025ba27e1b1a0045207fa2b919e61b78 /Lib/test/test_sgmllib.py | |
parent | 72c9eff59ed78243e746ee83375b70fea3f125ee (diff) | |
download | cpython-git-a16393efb779b62f9114c06852947e92dd9d155f.tar.gz |
add tests for two cases that are handled correctly in the current code,
but that SF patch 1504676 as written mis-handles
Diffstat (limited to 'Lib/test/test_sgmllib.py')
-rw-r--r-- | Lib/test/test_sgmllib.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Lib/test/test_sgmllib.py b/Lib/test/test_sgmllib.py index 2fe9300590..ec417d032a 100644 --- a/Lib/test/test_sgmllib.py +++ b/Lib/test/test_sgmllib.py @@ -218,7 +218,9 @@ DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01//EN' """Substitution of entities and charrefs in attribute values""" # SF bug #1452246 self.check_events("""<a b=< c=<> d=<-> e='< ' - f="&xxx;" g=' !' h='Ǵ' i='x?a=b&c=d;'>""", + f="&xxx;" g=' !' h='Ǵ' + i='x?a=b&c=d;' + j='&#42;' k='&#42;'>""", [("starttag", "a", [("b", "<"), ("c", "<>"), ("d", "<->"), @@ -226,7 +228,10 @@ DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01//EN' ("f", "&xxx;"), ("g", " !"), ("h", "Ǵ"), - ("i", "x?a=b&c=d;"), ])]) + ("i", "x?a=b&c=d;"), + ("j", "*"), + ("k", "*"), + ])]) def test_attr_funky_names(self): self.check_events("""<a a.b='v' c:d=v e-f=v>""", [ |