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

Custom namespaces declarations not preserved in generated SVG #174

Open
PlkMarudny opened this issue May 27, 2022 · 0 comments
Open

Custom namespaces declarations not preserved in generated SVG #174

PlkMarudny opened this issue May 27, 2022 · 0 comments

Comments

@PlkMarudny
Copy link

In the captured SVG I can see:

<svg xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink="http://www.w3.org/1999/xlink" 
    data-stacking-context="true" 
    aria-owns="chart-container1" 
    width="832" height="394" 
    viewBox="0 22 832 394">

While the source looks like:

<svg
	width="170"
	height="42.5"
	version="1.1"
	viewBox="0 0 303 42.5"
	xmlns="http://www.w3.org/2000/svg"
	x={width - 164}
	y={y - 19}
	xmlns:xlink="http://www.w3.org/1999/xlink"
	xmlns:asharq="http://www.asharq.com/namespaces/asharq"
>

Attributes from the custom namespace do exist in the generated SVG, but lack of declaration breaks the SVG effectively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant