]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
strip <A> attribute values
authorGuido van Rossum <guido@python.org>
Fri, 6 Oct 1995 15:30:57 +0000 (15:30 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 6 Oct 1995 15:30:57 +0000 (15:30 +0000)
Lib/htmllib.py

index c5c6f09e8b432742eb28b6a85f491ad4f8b563bb..b689f9c26bec8588f822ce36a454a5b12f8e1e4f 100644 (file)
@@ -322,6 +322,7 @@ class HTMLParser(SGMLParser):
         name = ''
         type = ''
         for attrname, value in attrs:
+           value = string.strip(value)
             if attrname == 'href':
                 href = value
             if attrname == 'name':