]> source.dussan.org Git - nextcloud-server.git/commitdiff
trying SVG check that Modernizr uses, to fix Firefox 3.6 problems
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>
Tue, 16 Aug 2011 10:46:25 +0000 (12:46 +0200)
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>
Tue, 16 Aug 2011 10:46:25 +0000 (12:46 +0200)
core/js/js.js

index 3e53a8bbce282897bc57f883ee6f18cafd412c03..9ad9810a7e0655a5bdbf99bb4ae56ee3504539d7 100644 (file)
@@ -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;
 }
 
 /**