Skip to content
Snippets Groups Projects
Commit c0789665 authored by Jan-Christoph Borchardt's avatar Jan-Christoph Borchardt
Browse files

trying SVG check that Modernizr uses, to fix Firefox 3.6 problems

parent b885bad2
No related branches found
No related tags found
No related merge requests found
......@@ -180,7 +180,7 @@ if (!Array.prototype.indexOf){
* check if the browser support svg images
*/
function SVGSupport() {
return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1") || document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Shape", "1.0");
return !!document.createElementNS && !!document.createElementNS('http://www.w3.org/2000/svg', "svg").createSVGRect;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment