Skip to content

Commit d9d516d

Browse files
committed
Force doctype for iframe
1 parent 899d532 commit d9d516d

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

build/html2canvas.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function createWindowClone(ownerDocument, width, height) {
9191
if window url is about:blank, we can assign the url to current by writing onto the document
9292
*/
9393
documentClone.open();
94-
documentClone.write("");
94+
documentClone.write("<!DOCTYPE html>");
9595
documentClone.close();
9696

9797
documentClone.replaceChild(documentClone.adoptNode(documentElement), documentClone.documentElement);

0 commit comments

Comments
 (0)