Page MenuHomePhabricator

[cxserver] Parsing removes empty spans causing template data loss
Closed, ResolvedPublic

Description

Span elements with data-mw and data-parsoid are getting lost when parsed by LinearDoc.js. This happens in the case spans contains empty or just new line.

This cause inconsistent behavior while handling templates at client side.

Steps to reproduce

http://parsoid.wmflabs.org/eswiki/Bangalore?oldid=75955225 has the infobox table and its associated span with about=#mwt3

But http://cxserver.wmflabs.org/page/es/Bangalore does not have a span with about=#mwt3


Version: master
Severity: normal

Details

Reference
bz69885

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:34 AM
bzimport set Reference to bz69885.

Change 158333 had a related patch set uploaded by Santhosh:
Avoid removing empty spans that carry template data

https://gerrit.wikimedia.org/r/158333

Change 158333 merged by jenkins-bot:
Avoid removing empty spans that carry template data

https://gerrit.wikimedia.org/r/158333