summaryrefslogtreecommitdiffstats
path: root/Lib/html/parser.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-04-07 19:27:44 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2011-04-07 19:27:44 (GMT)
commit6537be7fb20ca6e2c8617e8369e45c7f484b3724 (patch)
tree4140ed931562119e2af720c7ded74be811f36ab7 /Lib/html/parser.py
parentcece8cfe8a54bb8977ba74599c3861147367a377 (diff)
parent2e3607c1e758865519b28066b8925f37203e2197 (diff)
downloadcpython-6537be7fb20ca6e2c8617e8369e45c7f484b3724.zip
cpython-6537be7fb20ca6e2c8617e8369e45c7f484b3724.tar.gz
cpython-6537be7fb20ca6e2c8617e8369e45c7f484b3724.tar.bz2
#7311: merge with 3.2.
Diffstat (limited to 'Lib/html/parser.py')
-rw-r--r--Lib/html/parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/html/parser.py b/Lib/html/parser.py
index 21ebbc3..a3586eb 100644
--- a/Lib/html/parser.py
+++ b/Lib/html/parser.py
@@ -28,7 +28,7 @@ tagfind = re.compile('[a-zA-Z][-.a-zA-Z0-9:_]*')
# make it correctly strict without breaking backward compatibility.
attrfind = re.compile(
r'\s*([a-zA-Z_][-.:a-zA-Z_0-9]*)(\s*=\s*'
- r'(\'[^\']*\'|"[^"]*"|[-a-zA-Z0-9./,:;+*%?!&$\(\)_#=~@]*))?')
+ r'(\'[^\']*\'|"[^"]*"|[^\s"\'=<>`]*))?')
attrfind_tolerant = re.compile(
r'\s*([a-zA-Z_][-.:a-zA-Z_0-9]*)(\s*=\s*'
r'(\'[^\']*\'|"[^"]*"|[^>\s]*))?')