Inez has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/59983


Change subject: Initialize iframe for dialog with correct doctype
......................................................................

Initialize iframe for dialog with correct doctype

Change-Id: I93bf12754b5c4d99e117c822d287015765651eb3
---
M modules/ve/ui/ve.ui.Frame.js
1 file changed, 6 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor 
refs/changes/83/59983/1

diff --git a/modules/ve/ui/ve.ui.Frame.js b/modules/ve/ui/ve.ui.Frame.js
index ae1f806..869b86b 100644
--- a/modules/ve/ui/ve.ui.Frame.js
+++ b/modules/ve/ui/ve.ui.Frame.js
@@ -80,9 +80,12 @@
        // Initialize contents
        doc.open();
        doc.write(
-               '<body style="padding:0;margin:0;">' +
-                       '<div class="ve-ui-frame-content"></div>' +
-               '</body>'
+               '<!doctype html>' +
+               '<html>' +
+                       '<body style="padding:0;margin:0;">' +
+                               '<div class="ve-ui-frame-content"></div>' +
+                       '</body>' +
+               '</html>'
        );
        doc.close();
 

-- 
To view, visit https://gerrit.wikimedia.org/r/59983
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I93bf12754b5c4d99e117c822d287015765651eb3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Inez <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to