Add support for Safari 3.1 SVG version strings: Safari got more 'honest' about

what it supports, at the cost of breaking OpenLayers Vector layers. This looks
for a more 'basic' SVG featureset, as recommended by a Webkit developer.
r=pagameba (Closes #1463)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6581 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2008-03-25 17:29:11 +00:00
parent 19da92a321
commit 793fa3444b

View File

@@ -62,10 +62,11 @@ OpenLayers.Renderer.SVG = OpenLayers.Class(OpenLayers.Renderer.Elements, {
* {Boolean} Whether or not the browser supports the SVG renderer * {Boolean} Whether or not the browser supports the SVG renderer
*/ */
supported: function() { supported: function() {
var svgFeature = "http://www.w3.org/TR/SVG11/feature#SVG"; var svgFeature = "http://www.w3.org/TR/SVG11/feature#";
return (document.implementation && return (document.implementation &&
(document.implementation.hasFeature("org.w3c.svg", "1.0") || (document.implementation.hasFeature("org.w3c.svg", "1.0") ||
document.implementation.hasFeature(svgFeature, "1.1"))); document.implementation.hasFeature(svgFeature + "SVG", "1.1") ||
document.implementation.hasFeature(svgFeature + "BasicStructure", "1.1") ));
}, },
/** /**