Skip to content

Instantly share code, notes, and snippets.

@Taiger
Created October 25, 2013 01:24
Show Gist options
  • Save Taiger/7148066 to your computer and use it in GitHub Desktop.
Save Taiger/7148066 to your computer and use it in GitHub Desktop.
Conditional Compilation is the fix for Conditional Comments being disabled in IE10 and up. Lets face it, IE still sucks!! (ie10 and ie11 is still horrid!)
/* ie10 and up classes */
/*@cc_on
(function(){
console.log('Conditonals Rock!');
});
document.documentElement.classList += ' ie' + document.documentMode});
@*/
@Taiger
Copy link
Author

Taiger commented Oct 25, 2013

@Taiger
Copy link
Author

Taiger commented May 19, 2014

This does not work in IE11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment