Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

No commit message

  • Loading branch information...
commit d666ba47356614cf70526a442304521097c2936b 1 parent 4ebcc99
authored January 19, 2011

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. 6  matchMedia.js
6  matchMedia.js
@@ -25,8 +25,10 @@ if ( !(window.matchMedia) ){
25 25
     
26 26
     return function(q){
27 27
       if (cache[q] === undefined) {
28  
-        var styleBlock = doc.createElement('style');
29  
-        var cssrule = '@media '+q+' { #ejs-qtest { position: absolute; } }';
  28
+        var styleBlock = doc.createElement('style'),
  29
+        	cssrule = '@media '+q+' { #ejs-qtest { position: absolute; } }';
  30
+        //must set type for IE!	
  31
+        styleBlock.type = "text/css";	
30 32
         if (styleBlock.styleSheet){
31 33
             styleBlock.styleSheet.cssText = cssrule;
32 34
         // IE8 does not seem to support the styleSheet property nor appendChild with style elements:

0 notes on commit d666ba4

Please sign in to comment.
Something went wrong with that request. Please try again.