Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 303 Bytes

README.md

File metadata and controls

9 lines (6 loc) · 303 Bytes

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);