diff --git a/lib/client/dom.js b/lib/client/dom.js index 2e4d672d..41f1f442 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -270,14 +270,15 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; * check SVG SMIL animation support */ this.isSVG = function() { - var rect, ret, svgNode, + var rect, ret, svgNode, name, create = document.createElementNS, SVG_URL = 'http://www.w3.org/2000/svg'; if (create) { create = create.bind(document); svgNode = create(SVG_URL, 'animate'); - ret = /SVGAnimate/.test(toString.call(svgNode)); + name = svgNode.toString(); + ret = /SVGAnimate/.test(name); } return ret;