jenkins-bot has submitted this change and it was merged.

Change subject: T121174: Carry over paramInfo when unpacking DOMFragment
......................................................................


T121174: Carry over paramInfo when unpacking DOMFragment

Change-Id: Ibc66dbcfce4eefcaa01b11a58669a7f9b74dab3b
---
M lib/wt2html/pp/dom.t.unpackDOMFragments.js
1 file changed, 2 insertions(+), 1 deletion(-)

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



diff --git a/lib/wt2html/pp/dom.t.unpackDOMFragments.js 
b/lib/wt2html/pp/dom.t.unpackDOMFragments.js
index c7bc936..e715678 100644
--- a/lib/wt2html/pp/dom.t.unpackDOMFragments.js
+++ b/lib/wt2html/pp/dom.t.unpackDOMFragments.js
@@ -177,10 +177,11 @@
 
                        var contentNode = dummyNode.firstChild;
 
-                       // Transfer mw:Transclusion typeof
                        if (/(?:^|\s)mw:Transclusion(?=$|\s)/.test(typeOf)) {
+                               // Transfer typeof, data-mw, and param info
                                DU.setDataMw(contentNode, 
Util.clone(DU.getDataMw(node)));
                                DU.addTypeOf(contentNode, "mw:Transclusion");
+                               DU.getDataParsoid(contentNode).pi = dp.pi;
                        }
 
                        // Update DSR:

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibc66dbcfce4eefcaa01b11a58669a7f9b74dab3b
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Inez <[email protected]>
Gerrit-Reviewer: GWicke <[email protected]>
Gerrit-Reviewer: Subramanya Sastry <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to