I am trying to append some html code into iframe body and head, it works everywhere but mozilla.
var thisSlide = jQuery("#slide_1264");
var thisIframe = thisSlide.find("iframe");
var html = thisSlide.find(".template_layout").clone();
var iframeBody = thisIframe.contents().find("body");
iframeBody.append(html);
var iframeHead = thisIframe.contents().find("head");
iframeHead.append("<link rel='stylesheet' href='/scripts/ckeditor/contents.css' type='text/css'>");
iframeHead.append("<link rel='stylesheet' href='/css/template_style.css' type='text/css'>");
It does not return and console error, and basically it should just take html content from changing div "slide_?" and put it into iframe.
Is it some basic bug in mozilla? And should i look for some workaround? Or my code intepretation is not suited for mozilla browser?