-
-
Notifications
You must be signed in to change notification settings - Fork 220
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
xmlns attribute is required for single SVG file #720
Comments
Thanks for raising this issue. The XMLNS attribute should only be removed when the SVG document is "inline". This is only activated for SVG elements inside HTML. Otherwise, a regular SVG document is not considered inline and should thus not remove the XMLNS attribute. It is strange that this does happen for you, could you show me an example that reproduce this behaviour? |
Sorry for the lack of examples.
The easiest way to check is to enter the following commands:
|
Good point, this should be fixed in the latest release! |
#704 has a bug.
It is true that inline SVG does not require an xmlns attribute,
but it is required if we are loading the SVG file from HTML
or treating it as a single file.
If you open an SVG without an xmlns attribute in a browser,
you will see that the image will not be displayed.
The text was updated successfully, but these errors were encountered: