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:
parent
899d5321d4
commit
d9d516d27e
@ -91,7 +91,7 @@ function createWindowClone(ownerDocument, width, height) {
|
|||||||
if window url is about:blank, we can assign the url to current by writing onto the document
|
if window url is about:blank, we can assign the url to current by writing onto the document
|
||||||
*/
|
*/
|
||||||
documentClone.open();
|
documentClone.open();
|
||||||
documentClone.write("");
|
documentClone.write("<!DOCTYPE html>");
|
||||||
documentClone.close();
|
documentClone.close();
|
||||||
|
|
||||||
documentClone.replaceChild(documentClone.adoptNode(documentElement), documentClone.documentElement);
|
documentClone.replaceChild(documentClone.adoptNode(documentElement), documentClone.documentElement);
|
||||||
|
2
build/html2canvas.min.js
vendored
2
build/html2canvas.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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
|
if window url is about:blank, we can assign the url to current by writing onto the document
|
||||||
*/
|
*/
|
||||||
documentClone.open();
|
documentClone.open();
|
||||||
documentClone.write("");
|
documentClone.write("<!DOCTYPE html>");
|
||||||
documentClone.close();
|
documentClone.close();
|
||||||
|
|
||||||
documentClone.replaceChild(documentClone.adoptNode(documentElement), documentClone.documentElement);
|
documentClone.replaceChild(documentClone.adoptNode(documentElement), documentClone.documentElement);
|
||||||
|
Loading…
Reference in New Issue
Block a user