-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Option to remove standalone="no"
from XML declaration
#836
Comments
Generally, there is |
@GreLI There doesn't seem to be a definite answer if there are editors/browsers not rendering SVGs due to a missing XML declaration?! Although XML 1.0 states it's optional, it would be good to have a consensus what issues might arise from leaving it out. |
AFAIK, Firefox 3.6 doesn't support SVG except in I've heard nothing about something couldn't render SVG because of absent prolog. The only case was, that some primitive utils like |
Citing @Krinkle at https://phabricator.wikimedia.org/T178867#3801679
So the XML declaration is useful in those use cases, but it should be able to boil it down to the bare minimum |
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
As
standalone="no"
is the default value it should be stripped from SVGs by SVGO.One could go further and strip it anyways by default as the only relevant use case were a given DTD, which on the other hand is error prone (and to be removed in SVG 2 and set to remove by SVGO by default as of now.
Currently you can't reach into XML declaration with for example removeAttrs plugin.
The text was updated successfully, but these errors were encountered: