csscritic

Why am I getting a blocked script execution error?

杀马特。学长 韩版系。学妹 提交于 2019-12-07 00:23:02
问题 I am using http://cburgmer.github.io/rasterizeHTML.js/ to turn html into a canvas. When I change the code to: var canvas = document.getElementById("save_image_canvas"); // rasterizeHTML.drawHTML('<div style="font-size: 20px;">Some <span style="color: green">HTML</span> with an image</div>', canvas); rasterizeHTML.drawHTML(document.getElementById("mattes").innerHTML, canvas); I get the following error in the console: Blocked script execution in 'Mysite/Custom_App/' because the document's frame