Page MenuHomePhabricator

A table cell may appear inside the table while using VisualEditor, but before the table when the page is rendered
Closed, DuplicatePublic

Description

Here's an example I noticed today: https://en.wikipedia.org/w/index.php?title=Atli_%C3%96rvarsson&oldid=731000366

Notice "Hrútar(Rams)" above the table.

When editing this in the VisualEditor, the cell appears as a cell towards the end of the table.

The cell was added in this visual edit.

Event Timeline

Amire80 created this task.Aug 16 2016, 7:18 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 16 2016, 7:18 AM

This is because the malformed table content added manually in this edit gets "refostered" by Tidy in read mode but not in edit mode; the plan, in T89331: Replace HTML4 Tidy in MW parser with an equivalent HTML5 based tool, is to remove Tidy and replace it with something more modern, and exposed in such a way that these issues get fixed correctly by users rather than brushed under the rug (or broken in unexpected ways).

In this case, this is T109897: Table parsing diffs: Parsoid adds implicit <td>s after a |- if explicit pipe is not present.