Created
June 4, 2013 22:17
-
-
Save matijs/5710110 to your computer and use it in GitHub Desktop.
Detect support for inline SVG
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() { | |
var div = document.createElement("div"); | |
div.innerHTML = "<svg/>"; | |
return !!div.firstChild && div.firstChild.namespaceURI === "http://www.w3.org/2000/svg"; | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment