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

Namespaced attributes are not cleaned up when the original xmlns is removed. #88

Open
IanCaunce opened this issue Feb 11, 2015 · 2 comments

Comments

@IanCaunce
Copy link

I have an SVG which has a second xmlns of: xmlns:sketch="http://www.bohemiancoding.com/sketch/ns"
When the xmlns is replaced with the default, the attributes in the sketch namespace remain which causes a rendering error.

This page contains the following errors:

error on line 16 at column 280: Namespace prefix sketch for type on g is not defined
Below is a rendering of the page up to the first error.

@alexiscordova
Copy link

@IanCaunce I just ran into this myself, and found this workaround:

svg: {
  style: 'display: none;',
  xmlns: 'http://www.w3.org/2000/svg',
  'xmlns:sketch': 'http://www.bohemiancoding.com/sketch/ns',
  'xmlns:xlink': 'http://www.w3.org/1999/xlink'
}

This replaces the normal xmlns property with the one we need, xmlns:sketch and xmlns:xlink.

@andrewplummer
Copy link

Same here. svgstore doesn't play nicely with svgmin because of this error.

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

3 participants