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

Use document.createElementNS if we are