Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ie8 compat mode. ref #46

  • Loading branch information...
commit 7dcc268923720016f8d2afc6f0b153fb32a10004 1 parent 3ec7df6
@paulirish paulirish authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 feature-detects/ie8compat.js
View
12 feature-detects/ie8compat.js
@@ -0,0 +1,12 @@
+
+// IE8 compat mode aka Fake IE7
+// by Erich Ocean
+
+// In this case, IE8 will be acting as IE7. You may choose to remove features in this case.
+
+// related:
+// james.padolsey.com/javascript/detect-ie-in-js-using-conditional-comments/
+
+Modernizr.addTest('ie8compat',function(){
+ return (!window.addEventListener && document.documentMode && document.documentMode === 7);
+});
Please sign in to comment.
Something went wrong with that request. Please try again.