What is the expected behavior?
At least fill-* and stroke-* attributes should be preserved. There's actually quite a lot of possible attributes that may be desirable to keep so I suggest this be customisable by the developer.
If this is a feature request, what is motivation or use case for changing the behavior?
Defining attributes directly on the <symbol> results in smaller file size compared to declaring them on each internal element including on <g>. Allowing the developer to choose what attributes to keep allows for a finer level of customizability.
Do you want to request a feature, report a bug or ask a question? Bug + feature
What is the current behavior? Most attributes on
<svg>
elements are stripped. Looks like this was fixed forstroke
andfill
attributes in https://github.com/kisenka/svg-sprite-loader/issues/141 .What is the expected behavior? At least
fill-*
andstroke-*
attributes should be preserved. There's actually quite a lot of possible attributes that may be desirable to keep so I suggest this be customisable by the developer.If this is a feature request, what is motivation or use case for changing the behavior? Defining attributes directly on the
<symbol>
results in smaller file size compared to declaring them on each internal element including on<g>
. Allowing the developer to choose what attributes to keep allows for a finer level of customizability.Please tell us about your environment: