Skip to content

Fix recursion error on malformed use tags#239

Closed
arthurdarcet wants to merge 2 commits intoKozea:mainfrom
arthurdarcet:master
Closed

Fix recursion error on malformed use tags#239
arthurdarcet wants to merge 2 commits intoKozea:mainfrom
arthurdarcet:master

Conversation

@arthurdarcet
Copy link

<use> tags with an href attribute that isn't in the right namespace (xlink), trigger an infinite recursion error.

This PR introduce a ValueError for malfformed use tags, and lookup href attrs more leniently to support svg generated by some tools (chrome also support those mis-namespaced attributes, and the "lottie-web" framework generate svg files like this)

this fixes #187

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RecursionError: maximum recursion depth exceeded

1 participant

Comments