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
"Invalid SVG file" only thrown if start root element not present in SVG file #18
Comments
Hello @minademian, Thank you for your comment. The initial
I am not sure if this is a common usage of SVG. Actually, it will fail with the current configuration of the tool. Nevertheless, I want to investigate this structure because it seems browsers doesn't implement it. At least, for the inline SVG files. Related to changing the close I believe that the current approach is fine and it will fit with most of the use cases. But, I am going to add a close tag lint rule in #7. |
thanks for your response @Angelmmiguel, I understand. |
Great! I have just added the end tag lint in the issue. I am going to close this task. Please do not hesitate to open a new issue if you have other questions :) |
This is using
svgi
in code. Using latest version 1.1.0.test SVG file
Output at commandline
Output
couldnt find file Invalid SVG file
Should the initialization not fail if start or end root element don't exist or they don't match?
The text was updated successfully, but these errors were encountered: