Skip to content

Instantly share code, notes, and snippets.

@maxxscho
Created May 8, 2013 07:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxxscho/5538909 to your computer and use it in GitHub Desktop.
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!!!
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