
innersvg
Introduction
This JavaScript library provides the innerHTML property on all SVGElements.
innerHTML in a SVG document works in Chrome 6+, Safari 5+, Firefox 4+ and IE9+.
innerHTML in a HTML5 document works in Chrome 7+, Firefox 4+ and IE9+.
Doesn't work in Opera since the SVGElement interface is not exposed.
Sample Code
```
document.getElementId("foo").innerHTML = ""; ```
Demos
Standalone SVG demo here:
SVG-in-HTML5 demo here: http://innersvg.googlecode.com/hg/demos/innersvg.html
Tests
Unit tests in a HTML5 page: http://innersvg.googlecode.com/hg/test/test.html
Project Information
- License: Apache License 2.0
- 6 stars
- hg-based source control
Labels:
svg
dom
javascript