SVGInnerHTML SVGInnerHTML.js is a small Javascript shim that provides support for the .innerHTML attribute (setting and getting) for SVG and G elements. Some examples mySVGElement.innerHTML = 'hello world'; myGElement.innerHTML = ''; alert(mySVGElement.innerHTML);