summaryrefslogtreecommitdiff
path: root/Lib/test/test_htmlparser.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2003-03-14 16:21:57 +0000
committerFred Drake <fdrake@acm.org>2003-03-14 16:21:57 +0000
commit45e22f339f45a0ef18cf5e44e6c4da10b21b006a (patch)
treee9ebe218b6192f56cdb095ab123aad2a9e7c1fdd /Lib/test/test_htmlparser.py
parent40896349ec20a24f3694d92f4cfb8aa84ff157ff (diff)
downloadcpython-45e22f339f45a0ef18cf5e44e6c4da10b21b006a.tar.gz
Accept commas in unquoted attribute values.
This closes SF patch #669683.
Diffstat (limited to 'Lib/test/test_htmlparser.py')
-rwxr-xr-xLib/test/test_htmlparser.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_htmlparser.py b/Lib/test/test_htmlparser.py
index 8422751cef..a10c40b2e2 100755
--- a/Lib/test/test_htmlparser.py
+++ b/Lib/test/test_htmlparser.py
@@ -197,6 +197,10 @@ DOCTYPE html [
self._run_check("""<a b='' c="">""", [
("starttag", "a", [("b", ""), ("c", "")]),
])
+ # Regression test for SF patch #669683.
+ self._run_check("<e a=rgb(1,2,3)>", [
+ ("starttag", "e", [("a", "rgb(1,2,3)")]),
+ ])
def test_attr_entity_replacement(self):
self._run_check("""<a b='&amp;&gt;&lt;&quot;&apos;'>""", [