@samitouri / QOS-React-2 / commits / a999ac1ac3

warn if IE8 is in compatibility mode

Jon Hester committed Mar 5, 2015 at 13:48 UTC a999ac1ac30bd7ec9db152027fc480ea34652b5d
1 file changed +10
src/browser/ui/React.js
+10
@@ -113,6 +113,16 @@ if (__DEV__) {
113 }
114 }
115
116 + // If we're in IE8, check to see if we are in combatibility mode and provide
117 + // information on preventing compatibility mode
118 + if (document.documentMode && document.documentMode < 8) {
119 + console.debug(
120 + 'Internet Explorer is running in compatibility mode, please add the following ' +
121 + 'tag to your HTML to prevent this from happening: ' +
122 + '<meta http-equiv="X-UA-Compatible" content="IE=edge" />'
123 + );
124 + }
125 +
126 var expectedFeatures = [
127 // shims
128 Array.isArray,