strip attrs

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2018-02-26 18:18:28 -05:00
parent 509703a0ad
commit eeedbdba86
+1 -1
View File
@@ -184,7 +184,7 @@ class Element(BaseParser):
@property
def attrs(self):
"""Returns a dictionary of the attributes of the element."""
attrs = {k: self.pq.attr[k] for k in self.element.keys()}
attrs = {k: self.pq.attr[k].strip() for k in self.element.keys()}
# Split class up, as there are ussually many of them:
if 'class' in attrs: