SVG support test

This commit is contained in:
Phyks 2014-03-29 02:04:37 +01:00
parent 99d2441826
commit 118b4bc9fb
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,9 @@ SVG.labels = [];
*/
SVG.init = function (id, height, width, grid, x_axis, rounded)
{
if(!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image", "1.1")) {
alert("Your browser does not support embedded SVG.");
}
SVG.parent_holder = document.getElementById(id);
var svg = document.createElementNS(SVG.ns, 'svg:svg');