diff options
| author | Fred Drake <fdrake@acm.org> | 2003-03-14 16:21:57 +0000 |
|---|---|---|
| committer | Fred Drake <fdrake@acm.org> | 2003-03-14 16:21:57 +0000 |
| commit | 45e22f339f45a0ef18cf5e44e6c4da10b21b006a (patch) | |
| tree | e9ebe218b6192f56cdb095ab123aad2a9e7c1fdd /Lib/HTMLParser.py | |
| parent | 40896349ec20a24f3694d92f4cfb8aa84ff157ff (diff) | |
| download | cpython-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.py | 2 |
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 |
