Force doctype for iframe

This commit is contained in:
Niklas von Hertzen 2014-02-10 19:53:13 +02:00
parent 899d5321d4
commit d9d516d27e
3 changed files with 3 additions and 3 deletions

View File

@ -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);

File diff suppressed because one or more lines are too long

View File

@ -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);