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

This commit is contained in:
Jan-Christoph Borchardt 2011-08-16 12:46:25 +02:00
parent b885bad2ee
commit c078966511
1 changed files with 1 additions and 1 deletions

View 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;
}
/**