Get Your SVG into Shape!
Changed check to use element.tagName === 'PATH' for better VDOM compatibility