OpenLayers OpenLayers

Ticket #1463: svg.supported.patch

File svg.supported.patch, 0.9 kB (added by crschmidt, 10 months ago)

add BasicStructure test, confirmed to pass in Safari nightly, suggested by #17400

  • lib/OpenLayers/Renderer/SVG.js

    old new  
    6262     * {Boolean} Whether or not the browser supports the SVG renderer 
    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 
    7172    /**