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
deep cloning of SVG node loses xlink namespace information #1601
Comments
Note this can be worked around by using the original's outerHTML to build a clone manually. |
Are you sure this only occurs after the deepClone? If you print outer html before the clone, I'd expect the XML attributes to get mangled in a similar way, since we only serialise to html (even though we parse XML (kinda) correctly). |
What you are describing is just #861, right? (Which was fixed). To answer your question, I'm using outerHTML as a workaround in a project so I'm reasonably certain it works. |
FYI, if you add |
Thanks so much, @domenic ! |
When deep cloning an SVG, the xlink namespace information gets mangled.
This can lead to rendering issues (e.g., FF and Safari will fail to look up the
use
target).Minimal example (tested on jsdom v9.5.0):
This seems similar to #861.
The text was updated successfully, but these errors were encountered: