Skip to content

Commit

Permalink
datauri test. added note about IE7/SSL. fixes #362
Browse files Browse the repository at this point in the history
  • Loading branch information
phistuck committed Dec 10, 2011
1 parent 350ba28 commit 0099fa5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions feature-detects/url-data-uri.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
// data uri test.
// https://github.com/Modernizr/Modernizr/issues/14


// This test is asynchronous. Watch out.


// in IE7 in HTTPS this can cause a Mixed Content security popup.
// github.com/Modernizr/Modernizr/issues/362
// To avoid that you can create a new iframe and inject this.. perhaps..


(function(){

var datauri = new Image();
Expand All @@ -18,4 +23,4 @@

datauri.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";

})();
})();

0 comments on commit 0099fa5

Please sign in to comment.