OpenLayers OpenLayers

Changeset 6581

Show
Ignore:
Timestamp:
03/25/08 13:29:11 (6 months ago)
Author:
crschmidt
Message:

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)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Renderer/SVG.js

    r6515 r6581  
    6363     */ 
    6464    supported: function() { 
    65         var svgFeature = "http://www.w3.org/TR/SVG11/feature#SVG"; 
     65        var svgFeature = "http://www.w3.org/TR/SVG11/feature#"; 
    6666        return (document.implementation &&  
    67                 (document.implementation.hasFeature("org.w3c.svg", "1.0") ||  
    68                  document.implementation.hasFeature(svgFeature, "1.1"))); 
     67           (document.implementation.hasFeature("org.w3c.svg", "1.0") ||  
     68            document.implementation.hasFeature(svgFeature + "SVG", "1.1") ||  
     69            document.implementation.hasFeature(svgFeature + "BasicStructure", "1.1") )); 
    6970    },     
    7071