diff options
author | Fred Drake <fdrake@acm.org> | 2003-03-14 16:21:57 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2003-03-14 16:21:57 (GMT) |
commit | 0834d77bc4f07e5632588ed636b6db21e87694cc (patch) | |
tree | 850724fd3c7dd6eeccc9dd060784f4787ea7a39c /Lib/HTMLParser.py | |
parent | 080cb3268f770d2589ee350ace7f589927e8db98 (diff) | |
download | cpython-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/HTMLParser.py')
-rw-r--r-- | Lib/HTMLParser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/HTMLParser.py b/Lib/HTMLParser.py index 908b30e..c082fde 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 |