You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functionremoveStyles(el){el.removeAttribute('style');if(el.childNodes.length>0){for(varchildinel.childNodes){/* filter element nodes only */if(el.childNodes[child].nodeType==1)removeStyles(el.childNodes[child]);}}}
Playing around with this some more I have noticed that SVG's can store style attributes in a multitude of places other that 'paths'. As an example:
There are also shape elements (
<circle>
,<ellipse>
,<line>
,<polygon>
,<polyline>
,<rect>
) which can contain style tags. There may be others too from this list:https://developer.mozilla.org/en-US/docs/Web/SVG/Element
The above svg code was generated by Adobe3 Photoshop CC 2014 using the Extract Assets function.
The text was updated successfully, but these errors were encountered: