Check for SVG 1.0 as well. Fixes #540.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@2818 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Schuyler Erle
2007-03-19 14:50:03 +00:00
parent 3f0b0286fc
commit ef53b9d6a3

View File

@@ -40,7 +40,7 @@ OpenLayers.Renderer.SVG.prototype =
*/
supported: function() {
var svgFeature = "http://www.w3.org/TR/SVG11/feature#SVG";
var supported = document.implementation.hasFeature(svgFeature, "1.1");
var supported = (document.implementation.hasFeature("org.w3c.svg", "1.0") || document.implementation.hasFeature(svgFeature, "1.1"));
return supported;
},