diff --git a/Lib/sgmllib.py b/Lib/sgmllib.py index 304bbdbff0e..8f320018800 100644 --- a/Lib/sgmllib.py +++ b/Lib/sgmllib.py @@ -33,7 +33,7 @@ commentclose = regex.compile('--[ \t\n]*>') tagfind = regex.compile('[a-zA-Z][a-zA-Z0-9]*') attrfind = regex.compile( - '[ \t\n]+\([a-zA-Z_][a-zA-Z_0-9]*\)' + '[ \t\n]+\([a-zA-Z_][-.a-zA-Z_0-9]*\)' '\([ \t\n]*=[ \t\n]*' '\(\'[^\']*\'\|"[^"]*"\|[-a-zA-Z0-9./:+*%?!()_#=~]*\)\)?')