Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Update lib/transports/jsonp-polling.js - IE6 error popup while on https; #515

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+3 −2
Split
@@ -1,4 +1,3 @@
-
/**
* socket.io
* Copyright(c) 2011 LearnBoost <dev@learnboost.com>
@@ -113,10 +112,11 @@
try {
// ie6 dynamic iframes with target="" support (thanks Chris Lambacher)
- iframe = document.createElement('<iframe name="'+ self.iframeId +'">');
+ iframe = document.createElement('<iframe src="javascript:0" name="'+ self.iframeId +'">');
} catch (e) {
iframe = document.createElement('iframe');
iframe.name = self.iframeId;
+ iframe.src = "javascript:0";
}
iframe.id = self.iframeId;
@@ -181,6 +181,7 @@
if (indicator) {
setTimeout(function () {
var iframe = document.createElement('iframe');
+ iframe.src = "javascript:0";
document.body.appendChild(iframe);
document.body.removeChild(iframe);
}, 100);