summaryrefslogtreecommitdiff
path: root/bs4/element.py
diff options
context:
space:
mode:
Diffstat (limited to 'bs4/element.py')
-rw-r--r--bs4/element.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bs4/element.py b/bs4/element.py
index ba63a88..86e6c71 100644
--- a/bs4/element.py
+++ b/bs4/element.py
@@ -649,7 +649,7 @@ class PageElement(object):
classes = set(klass.split('.'))
production_rule = lambda tag: tag.find_all(tag_name)
def classes_match(candidate):
- return classes.issubset(tag.getattr('class', []))
+ return classes.issubset(candidate.get('class', []))
checker = classes_match
elif ':' in token: