Ono Fails if there is </html> inside javascript function
tosbaha opened this issue · 1 comments
tosbaha commented
Let's say document has following javascript, ono stops whenever it sees ending html tag. However, ono shouldn't parse javascript I guess.
function PrintDiv() {
//Print Content of the Div in a New Blank Window
var disp_setting = "toolbar=no,location=no,directories=no,menubar=no,";
var content_vlue = document.getElementById('DivBlaBla').innerHTML;
var docprint = window.open("", "", disp_setting);
docprint.document.open();
docprint.document.write('<html><head><title></title>');
docprint.document.write('</head><body onLoad="self.print();window.close();">');
docprint.document.write(content_vlue);
docprint.document.write("</body></html>");
docprint.document.close();
docprint.focus();
}
</script>