viur-framework / flare

Python framework to create web-apps on top of Pyodide
https://flare.docs.viur.dev
MIT License
33 stars 10 forks source link

Most SVG path attributes disappear on rendering #53

Open JanDoerrenhaus opened 2 years ago

JanDoerrenhaus commented 2 years ago

When a template is rendered by flare, it is being parsed into an object tree. The corresponding class for SVG paths is this one which only supports the two attributes d and pathLength. The standard lists quite a lot more attributes, but they all get discarded by this parsing process, resulting in visually broken SVG being rendered.