Created
May 8, 2013 07:54
-
-
Save maxxscho/5538909 to your computer and use it in GitHub Desktop.
Target IE10 and add class .ie10 to the HTML Element. IE10 doesn't read conditional comments!!!
This file contains hidden or 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
if(Function('/*@cc_on return 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