Skip to content

Commit 432a476

Browse files
committed
Merge pull request #1 from taikedz/dev-tai
Fixed parser issue - AdvancedTag has no attribute 'get'
2 parents b102a6d + bbf25fa commit 432a476

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AdvancedHTMLParser/Parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def getElementsByAttr(self, attrName, attrValue, root='root'):
296296

297297
elements = []
298298

299-
if isFromRoot is True and root.get(attrName) == attrValue:
299+
if isFromRoot is True and root.getAttribute(attrName) == attrValue:
300300
elements.append(root)
301301

302302
for child in root.children:

0 commit comments

Comments
 (0)