jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/374826 )

Change subject: Use Target#parseDocument
......................................................................


Use Target#parseDocument

This applies the base URL fix, so links work correctly.

Change-Id: I45a13e788901607399f7505c10fc6a3ac20b4631
---
M modules/dm/mw.cx.dm.Translation.js
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Divec: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/dm/mw.cx.dm.Translation.js 
b/modules/dm/mw.cx.dm.Translation.js
index c5faac3..c74781c 100644
--- a/modules/dm/mw.cx.dm.Translation.js
+++ b/modules/dm/mw.cx.dm.Translation.js
@@ -67,7 +67,7 @@
 mw.cx.dm.Translation.static.getSourceDom = function ( sourceHtml, forTarget ) {
        var nextSectionId = 1,
                sectionIdPrefix = forTarget ? 'cxTargetSection' : 
'cxSourceSection',
-               domDoc = ve.createDocumentFromHtml( sourceHtml );
+               domDoc = ve.init.target.parseDocument( sourceHtml, 'visual' );
        // Wrap each top-level element with a <section rel='cx:Placeholder' 
id='xxx'>
        // TODO: it would be better to do section wrapping on the CX server
        Array.prototype.forEach.call( domDoc.body.childNodes, function ( node ) 
{

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I45a13e788901607399f7505c10fc6a3ac20b4631
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>
Gerrit-Reviewer: Bartosz DziewoƄski <[email protected]>
Gerrit-Reviewer: Divec <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to