Last active
April 8, 2018 02:51
-
-
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.
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
// 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