Skip to content

Instantly share code, notes, and snippets.

@bgallagh3r
Last active April 8, 2018 02:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bgallagh3r/5782307 to your computer and use it in GitHub Desktop.
Save bgallagh3r/5782307 to your computer and use it in GitHub Desktop.
IE 10 detection. Since IE10 removed IE specific conditionals there is no real way to test for IE10. This is a simple script when added to the header will add the ie10 class to the HTML element.
// Add Version check for IE10 since they removed IE conditional statements
// Source: http://www.impressivewebs.com/ie10-css-hacks/
if (/*@cc_on!@*/false && document.documentMode === 10) {document.documentElement.className+=' ie10';}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment