Created
July 18, 2013 17:48
-
-
Save panzi/6031380 to your computer and use it in GitHub Desktop.
Detect SVG browser support.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function supportsSVG() { | |
return !!document.createElementNS && !!document.createElementNS("http://www.w3.org/2000/svg", "svg").createSVGRect; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Demo: http://jsfiddle.net/EwX2P/