ie8compat.js 376 B

123456789101112
  1. // IE8 compat mode aka Fake IE7
  2. // by Erich Ocean
  3. // In this case, IE8 will be acting as IE7. You may choose to remove features in this case.
  4. // related:
  5. // james.padolsey.com/javascript/detect-ie-in-js-using-conditional-comments/
  6. Modernizr.addTest('ie8compat',function(){
  7. return (!window.addEventListener && document.documentMode && document.documentMode === 7);
  8. });