-
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
read
crashes with SVG containing empty <polygon> tag
#260
Comments
This will be corrected in svgelements 1.4.11. The parsing somewhat represents the render tree and as such degenerate shapes which are not to be rendered will not be returned as parsed. So Rect with widths of 0 will also be omitted going forward. |
abey79
changed the title
Guard against minor svgelements bug.
Apr 19, 2021
read
crashes with SVG containing empty <polygon> tag
For reference in case someone else encounters this bug, this is the error shown when this happens:
|
1.4.11 was published and should omit degenerate shapes. |
abey79
added a commit
that referenced
this issue
May 3, 2021
9 tasks
abey79
added a commit
that referenced
this issue
May 3, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
meerk40t/svgelements#105
A polygon of
<polygon points="">
in svg creates a polygon of zero points and as such that line causes an index error. I checked the SVG spec for the error handling of 0 point polygons and it says "The initial value, (none), indicates that the polygon element is valid, but does not render." Which means svgelements is in error when it produces a degenerate polygon in that case.The text was updated successfully, but these errors were encountered: