Closed stefanw closed 2 years ago
An SVG with emtpy style tag like <style></style> breaks parsing because node.text is None and CSSMatcher doesn't like a None argument.
<style></style>
node.text
None
CSSMatcher
This PR fixes this by passing in an empty string if node.text is Falsey. Test included.
Excellent, thanks!
An SVG with emtpy style tag like
<style></style>
breaks parsing becausenode.text
isNone
andCSSMatcher
doesn't like aNone
argument.This PR fixes this by passing in an empty string if
node.text
is Falsey. Test included.