ACE-IoT-Solutions / ace-svg-react

Grafana SVG Rendering Panel using the 7+ Plugin Framework
https://grafana.com/grafana/plugins/aceiot-svg-panel/
MIT License
41 stars 14 forks source link

ACE.SVG adds phantom text child nodes to SVG root #5

Open eriklouise opened 4 years ago

eriklouise commented 4 years ago

Hello ACE.SVG fellows,

Here's something weird I found: ACE.SVG adds phantom text child nodes to SVG root

Steps to reproduce: Add the following SVG code as SVG doc: `<?xml version="1.0" encoding="UTF-8" standalone="no"?>

` Put `console.log(svgmap.rootSVG);` as init script and let render empty. Here's the output of my console, there's two text nodes that appeared as first and last child of the root node: Capture d’écran 2020-09-07 à 12 11 19
acedrew commented 3 years ago

Interesting, let me look and see if that's a function of SVG.js (the library that's doing the actual SVG parsing and rendering) or some code I added that helped where there were XHTML text tags embedded in the SVG.

Andrew

acedrew commented 3 years ago

also @eriklouise Thank you!