jenkins-bot has submitted this change and it was merged.
Change subject: Emit a proper doctype
......................................................................
Emit a proper doctype
So far we were not emitting a proper doctype in our output. Easy to fix, and
does not seem to affect any tests.
The VE should also handle this well enough as they are loading the document in
an iframe. Should double-check before deployment though.
Change-Id: I4d07dfe6f6207104e256b87078cc3a5404bbd7a6
---
M js/lib/mediawiki.Util.js
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
MarkTraceur: Looks good to me, approved
jenkins-bot: Verified
diff --git a/js/lib/mediawiki.Util.js b/js/lib/mediawiki.Util.js
index a4807a1..da22023 100644
--- a/js/lib/mediawiki.Util.js
+++ b/js/lib/mediawiki.Util.js
@@ -1174,7 +1174,7 @@
fictional.appendChild(doc.cloneNode());
html = fictional.innerHTML;
}
- return compressHTML(html);
+ return '<!DOCTYPE html>\n' + compressHTML(html);
},
/**
--
To view, visit https://gerrit.wikimedia.org/r/60895
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I4d07dfe6f6207104e256b87078cc3a5404bbd7a6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: GWicke <[email protected]>
Gerrit-Reviewer: MarkTraceur <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits