Iframe.contentWindow.print () print compatibility problem

iframe.contentWindow.print () prints blank space in chrome65 and is normal in chrome66. What is the reason?

main code:

    var tabhtml = $("-sharpfromHTMLtestdiv").html();
    var iframe = document.createElement("Iframe");
    iframe.style.display = "none";
    document.body.appendChild(iframe);
    var doc = iframe.contentWindow.document;
    doc.write(tabhtml);
    doc.close();
    iframe.contentWindow.print();

print the contents of iframe.contentWindow.document,

Mar.12,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3fa26-4f112.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3fa26-4f112.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?