Commit f5b814db authored by Guido van Rossum's avatar Guido van Rossum

Apply lower() to end tag before passing it to the handler!

parent 49b01517
......@@ -275,7 +275,7 @@ class HTMLParser:
break
attrname, rest, attrvalue = m.group(1, 2, 3)
if not rest:
attrvalue = None
attrvalue = attrname
elif attrvalue[:1] == '\'' == attrvalue[-1:] or \
attrvalue[:1] == '"' == attrvalue[-1:]:
attrvalue = attrvalue[1:-1]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment