summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sgmllib.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2003-03-14 16:21:57 (GMT)
committerFred Drake <fdrake@acm.org>2003-03-14 16:21:57 (GMT)
commit0834d77bc4f07e5632588ed636b6db21e87694cc (patch)
tree850724fd3c7dd6eeccc9dd060784f4787ea7a39c /Lib/test/test_sgmllib.py
parent080cb3268f770d2589ee350ace7f589927e8db98 (diff)
downloadcpython-0834d77bc4f07e5632588ed636b6db21e87694cc.zip
cpython-0834d77bc4f07e5632588ed636b6db21e87694cc.tar.gz
cpython-0834d77bc4f07e5632588ed636b6db21e87694cc.tar.bz2
Accept commas in unquoted attribute values.
This closes SF patch #669683.
Diffstat (limited to 'Lib/test/test_sgmllib.py')
-rw-r--r--Lib/test/test_sgmllib.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_sgmllib.py b/Lib/test/test_sgmllib.py
index 90ed87e..6f4454f 100644
--- a/Lib/test/test_sgmllib.py
+++ b/Lib/test/test_sgmllib.py
@@ -200,6 +200,10 @@ DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01//EN'
self.check_events("""<a b='' c="">""", [
("starttag", "a", [("b", ""), ("c", "")]),
])
+ # Regression test for SF patch #669683.
+ self.check_events("<e a=rgb(1,2,3)>", [
+ ("starttag", "e", [("a", "rgb(1,2,3)")]),
+ ])
def test_attr_funky_names(self):
self.check_events("""<a a.b='v' c:d=v e-f=v>""", [