Side navigation
Ticket #4348: jquery_bug.js
File jquery_bug.js, 0.3 KB (added by dazz_x, March 13, 2009 04:36PM UTC)
lines of code that throws the exception
var win = $("iframe#cible")[0];
var contDoc = win.contentDocument;
if (contDoc==undefined){
contDoc = win.contentWindow.document;
}
var doc = $(contDoc);
var styleStr = "<style type=\"text/css\">.clazz{border: none;}</style>";
$(styleStr).appendTo($('head',doc));
Download in other formats:
Original Format
File jquery_bug.js, 0.3 KB (added by dazz_x, March 13, 2009 04:36PM UTC)
lines of code that throws the exception
var win = $("iframe#cible")[0];
var contDoc = win.contentDocument;
if (contDoc==undefined){
contDoc = win.contentWindow.document;
}
var doc = $(contDoc);
var styleStr = "<style type=\"text/css\">.clazz{border: none;}</style>";
$(styleStr).appendTo($('head',doc));