VisualEditor: Category leaks out of transclusion when round-tripped through VE
Closed, ResolvedPublic


Example diff:

Works in Parsoid:

echo '{{commons category}}' | node parse --wt2wt
{{commons category}}

Version: unspecified
Severity: normal
See Also:


GWicke created this task.Jun 27 2013, 11:23 PM

Looks like a link element that is also encapsulated is not properly handled by VE:

<link rel="mw:WikiLink/Category" href="./Category:Commons_category_without_a_link_on_Wikidata" data-parsoid='{"stx":"simple","a":{"href":"./Category:Commons_category_without_a_link_on_Wikidata"},"sa":{"href":"Category:Commons category without a link on Wikidata"}}' about="#mwt1">

This was fixed by the fix for bug 50120. The DOM produced by the {{commons category}} template is very similar to the persondata template.

Add Comment