Skip to content

Instantly share code, notes, and snippets.

@davidbarredo
Created December 19, 2016 14:44
Show Gist options
  • Save davidbarredo/3605d3308c9531fc379d311ad123a2eb to your computer and use it in GitHub Desktop.
Save davidbarredo/3605d3308c9531fc379d311ad123a2eb to your computer and use it in GitHub Desktop.
One line to detect SVG support (usually for IE8)
var svgSupport = !!(document.createElementNS && document.createElementNS('http://www.w3.org/2000/svg', 'svg').createSVGRect);
@davidbarredo
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment