Skip to content
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

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

Open
eriklouise opened this issue Sep 7, 2020 · 2 comments
Open

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

eriklouise opened this issue Sep 7, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@eriklouise
Copy link

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"?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" id="rootSVG" style="height:100%; width:100%"> <g id="baseIndicator_0"> </g> </svg>

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
Copy link
Contributor

acedrew commented Sep 8, 2020

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
Copy link
Contributor

acedrew commented Sep 8, 2020

also @eriklouise Thank you!

@nicfv nicfv added the bug Something isn't working label Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants