mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
allow _ in attr names (Netscape!)
This commit is contained in:
parent
4f399fb642
commit
e3d9320fc5
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ class SGMLParser:
|
||||||
attrs = []
|
attrs = []
|
||||||
tagfind = regex.compile('[a-zA-Z][a-zA-Z0-9]*')
|
tagfind = regex.compile('[a-zA-Z][a-zA-Z0-9]*')
|
||||||
attrfind = regex.compile(
|
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]*' +
|
'\([ \t\n]*=[ \t\n]*' +
|
||||||
'\(\'[^\']*\';\|"[^"]*"\|[-a-zA-Z0-9./:+*%?!()_#]+\)\)?')
|
'\(\'[^\']*\';\|"[^"]*"\|[-a-zA-Z0-9./:+*%?!()_#]+\)\)?')
|
||||||
k = tagfind.match(rawdata, i+1)
|
k = tagfind.match(rawdata, i+1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue