looker/innersvg-polyfill

Name: innersvg-polyfill

Owner: looker

Description: mirror for https://code.google.com/p/innersvg/

Forked from: dnozay/innersvg-polyfill

Created: 2017-05-12 23:43:23.0

Updated: 2017-05-12 23:43:25.0

Pushed: 2017-05-12 23:56:24.0

Homepage: null

Size: 25

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

innersvg-polyfill

mirror for https://code.google.com/p/innersvg/ + some files to make the package available in npm and bower.

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

<g id="foo"/>

document.getElementId("foo").innerHTML = "<circle r='40' fill='green'/>";

License

Apache License, Version 2.0


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.