Page MenuHomePhabricator

Problem merging table cells in VisualEditor in some articles
Open, Needs TriagePublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

What happens?:
Whole table disappears.

In general all columns with cells you select disappear. If you select first two cells (in one row!) then first two columns disappear.

What should have happened instead?:

Should merge cells.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
Chrome 94.
Firefox 93.0b9 (dev).
Windows 10.

obraz.png (709×709 px, 198 KB)

Event Timeline

The problem disappears if you do this: https://pl.wikipedia.org/w/index.php?title=Wikipedysta:EcceNux/brudnopis&diff=64695231&oldid=64678454&diffmode=source

Apparently the |- table row markup, when placed before the |+ table caption markup, outputs an empty table row before the caption in Parsoid HTML and thus in VisualEditor (it doesn't output anything in old parser HTML). This empty row somehow breaks the table operations (I have no idea why that happens, maybe something in our code relies on the caption being the first element if it exists).

Just FYI added a workaround in WP:SK too. But I guess this might be a problem on other wikis too.