Created
August 31, 2013 13:38
-
-
Save ridgehkr/6398232 to your computer and use it in GitHub Desktop.
Detect the user's IE version and add that class to the html tag. JS version of https://gist.github.com/ridgehkr/5985810
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
var isIE8, test_version; | |
test_version = 8; | |
isIE8 = (document.documentMode != null) && document.documentMode === test_version; | |
if (isIE8) { | |
return document.documentElement.className += ' ie8'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment