mirror of
https://github.com/python/cpython.git
synced 2024-11-24 18:34:43 +08:00
allow _ in attr names (Netscape!)
This commit is contained in:
parent
4f399fb642
commit
e3d9320fc5
@ -176,7 +176,7 @@ class SGMLParser:
|
||||
attrs = []
|
||||
tagfind = regex.compile('[a-zA-Z][a-zA-Z0-9]*')
|
||||
attrfind = regex.compile(
|
||||
'[ \t\n]+\([a-zA-Z][a-zA-Z0-9]*\)' +
|
||||
'[ \t\n]+\([a-zA-Z_][a-zA-Z_0-9]*\)' +
|
||||
'\([ \t\n]*=[ \t\n]*' +
|
||||
'\(\'[^\']*\';\|"[^"]*"\|[-a-zA-Z0-9./:+*%?!()_#]+\)\)?')
|
||||
k = tagfind.match(rawdata, i+1)
|
||||
|
Loading…
Reference in New Issue
Block a user