Skip to content

Commit

Permalink
Merge pull request #1 from femesq/femesq-patch-1
Browse files Browse the repository at this point in the history
Update cssselect.py to fix dlanger#32
  • Loading branch information
femesq authored Jan 31, 2024
2 parents 335c4fb + 29fc1c2 commit 488c598
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions inlinestyler/cssselect.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ def __repr__(self):
hex(abs(id(self)))[2:],
self.css)

def evaluate(self, doc):
try:
return super(CSSSelector, self).evaluate(doc)
except AttributeError:
return self(doc)

##############################
## Token objects:

Expand Down

0 comments on commit 488c598

Please sign in to comment.