mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Force doctype for iframe
This commit is contained in:
@ -82,7 +82,7 @@ function createWindowClone(ownerDocument, width, height) {
|
||||
if window url is about:blank, we can assign the url to current by writing onto the document
|
||||
*/
|
||||
documentClone.open();
|
||||
documentClone.write("");
|
||||
documentClone.write("<!DOCTYPE html>");
|
||||
documentClone.close();
|
||||
|
||||
documentClone.replaceChild(documentClone.adoptNode(documentElement), documentClone.documentElement);
|
||||
|
Reference in New Issue
Block a user