-
Notifications
You must be signed in to change notification settings - Fork 60
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
Unknown attribute cleaning. #300
Comments
I think all three options might be dangerous breaking specific SVG-files. The first for example needs to know which element may have which attributes. e.g. Why do you want those features? Validating of the file? Reduction of File-size? Better source-code-readable? No private metadata? Reducing of rendering-errors? (Maybe provide an example, with input and desired output.) @Developers: Sorry for pointing user to competitors, but I'm also recommending scour in other projects. Scour is imho the one with fewest bugs. I try to help Users with their problems. |
It can be opt-in. For some people the risk of breakage is worth it.
For cases like this I would recommend that option 1 from the original request keeps them as "defacto standards". But I'm not too bothered either way.
For me I want reduction of file-size and no private metadata. |
I agree on that (implementing unstable beta-featurs as opt-in), however developers generally don't implement it. Maybe because that will lead to many bug-reports. And your feature-request is imho not something easy to implement.
Scour is imho more the conservative approach if you want to minimize file-size I recommend to use |
It would be useful to have an option to remove attributes that aren't part of the SVG spec as they are added by many tools and editors.
Possible configurations would be:
data-.*
)The text was updated successfully, but these errors were encountered: