Page MenuHomePhabricator

Table with some template-generated rows appears with additional jumbled empty table cells
Closed, ResolvedPublic1 Estimated Story Points

Description

Editing https://en.wikipedia.org/wiki/Don't_Worry,_Be_Happy#Charts, the charts table goes bonkers.

2014-07-21_00_47_40-Editing_Don_t_Worry,_Be_Happy_-_Wikipedia_-_Opera.png (593×403 px, 23 KB)

Some of the rows in that table are "normal" wikitext, some are generated using [[w:Template:Singlechart]]. The normal ones display correctly, the template ones have an additional empty table cell spliced in the middle. (It gets better: the cell is actually a <span> element inside the <tr>.)

Parsoid's rendering is correct with no random cells.
http://parsoid-lb.eqiad.wikimedia.org/enwiki/Don't_Worry%2C_Be_Happy?oldid=617765397

Another example: https://en.wikipedia.org/wiki/Benford's_law#Mathematical_statement

pasted_file (304×550 px, 14 KB)

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:34 AM
bzimport set Reference to bz68306.
This comment was removed by matmarex.
This comment was removed by matmarex.
matmarex renamed this task from VisualEditor: Table with some template-generated rows appears with additional jumbled empty table cells – enwiki's {{Singlechart}} template to Table with some template-generated rows appears with additional jumbled empty table cells.Feb 7 2015, 10:18 PM
matmarex updated the task description. (Show Details)

Change 308680 had a related patch set uploaded (by Esanders):
Don't render cursor holders outside of active node

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

Simple test case: Edit cell 'H' in 'Alien table' on tables.html.

Change 308680 merged by jenkins-bot:
Don't render cursor holders outside of active node

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

Jdforrester-WMF assigned this task to Esanders.
Jdforrester-WMF set the point value for this task to 1.