CairoSVG icon indicating copy to clipboard operation
CairoSVG copied to clipboard

Fix recursion error on malformed use tags

Open arthurdarcet opened this issue 6 years ago • 0 comments

<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

arthurdarcet avatar May 06 '19 08:05 arthurdarcet