Check if the parent is an SVGElement or if we are rendering a svg tag