summaryrefslogtreecommitdiff
path: root/Lib/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/HTMLParser.py
parent40896349ec20a24f3694d92f4cfb8aa84ff157ff (diff)
downloadcpython-45e22f339f45a0ef18cf5e44e6c4da10b21b006a.tar.gz
Accept commas in unquoted attribute values.
This closes SF patch #669683.
Diffstat (limited to 'Lib/HTMLParser.py')
-rw-r--r--Lib/HTMLParser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/HTMLParser.py b/Lib/HTMLParser.py
index 908b30ebd0..c082fde527 100644
--- a/Lib/HTMLParser.py
+++ b/Lib/HTMLParser.py
@@ -26,7 +26,7 @@ commentclose = re.compile(r'--\s*>')
tagfind = re.compile('[a-zA-Z][-.a-zA-Z0-9:_]*')
attrfind = re.compile(
r'\s*([a-zA-Z_][-.:a-zA-Z_0-9]*)(\s*=\s*'
- r'(\'[^\']*\'|"[^"]*"|[-a-zA-Z0-9./:;+*%?!&$\(\)_#=~]*))?')
+ r'(\'[^\']*\'|"[^"]*"|[-a-zA-Z0-9./,:;+*%?!&$\(\)_#=~]*))?')
locatestarttagend = re.compile(r"""
<[a-zA-Z][-.a-zA-Z0-9:_]* # tag name