learn more

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2018-02-27 20:30:04 -05:00
parent b795a595af
commit 44e86f34d0
+3 -1
View File
@@ -220,7 +220,9 @@ class Element(BaseParser):
@property
def attrs(self) -> dict:
"""Returns a dictionary of the attributes of the :class:`Element <Element>`."""
"""Returns a dictionary of the attributes of the :class:`Element <Element>`
(`learn more <https://www.w3schools.com/tags/ref_attributes.asp>`_).
"""
attrs = {k: self.pq.attr[k].strip() for k in self.element.keys()}
# Split class up, as there are ussually many of them: