There was an error while loading. Please reload this page.
1 parent 899d532 commit d9d516dCopy full SHA for d9d516d
3 files changed
build/html2canvas.js
@@ -91,7 +91,7 @@ function createWindowClone(ownerDocument, width, height) {
91
if window url is about:blank, we can assign the url to current by writing onto the document
92
*/
93
documentClone.open();
94
- documentClone.write("");
+ documentClone.write("<!DOCTYPE html>");
95
documentClone.close();
96
97
documentClone.replaceChild(documentClone.adoptNode(documentElement), documentClone.documentElement);
0 commit comments