Page MenuHomePhabricator

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

Description

Example diff:

https://en.wikipedia.org/w/index.php?title=FC_Dila_Gori&curid=6581323&diff=561887535&oldid=561367008

Works in Parsoid:

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


Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=50120

Details

Reference
bz50332

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:44 AM
bzimport set Reference to bz50332.

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.