Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
I came across a problem when doing something in IntelliJ. The root cause is an exception from Batik. I have NO idea if this is expected behaviour - but I thought I would report it in case it's something Batik can resolve. Or maybe it's already resolved.
There are more details in the ticket I made for IntelliJ
https://youtrack.jetbrains.com/issue/IDEA-298319
Here's the cause in the IntelliJ logs:
org.w3c.dom.DOMException: invalid.element [http://www.w3.org/2000/svg, flowRoot]
at org.apache.batik.dom.AbstractNode.createDOMException(AbstractNode.java:408)
at org.apache.batik.anim.dom.SVGDOMImplementation.createElementNS(SVGDOMImplementation.java:202)
...
This is the element that causes the crash. If I remove this flowRoot element, then it works successfully.
<flowRoot xml:space="preserve" id="flowRoot18" style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none" transform="scale(0.26458333)"><flowRegion id="flowRegion20"><rect id="rect22" width="6.7637539" height="45.501617" x="114.98382" y="251.22519" /></flowRegion><flowPara id="flowPara24" /></flowRoot> <circle style="fill:#fdb100;fill-opacity:0.50196081;stroke:none;stroke-width:1.29999995;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" id="path32" cx="79.414413" cy="83.552322" r="14.169809" />
Here's the commit that fixes the issue https://github.com/mockk/mockk/commit/c090846874968eb686a710fab5510b5845715e44#diff-abcf4d256d8d2df650b5953f230a3b0602f667ef0531d7ec4756e9bcef69b10a
This is the file with the invalid element: https://github.com/mockk/mockk/blob/4f51dc076854b0139c53916c5ba707dcfa567fbd/doc/logo.svg