Created
October 25, 2013 01:24
-
-
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!)
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
/* ie10 and up classes */ | |
/*@cc_on | |
(function(){ | |
console.log('Conditonals Rock!'); | |
}); | |
document.documentElement.classList += ' ie' + document.documentMode}); | |
@*/ |
This does not work in IE11.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
More info here:
http://www.javascriptkit.com/javatutors/conditionalcompile.shtml