Parsoid doesn't handle unclosed table attributes (because of missing quote) in all scenarios
Closed, ResolvedPublic


A user on the English Wikipedia reports that when saving an edit to the lead of an article in Visual Editor, a table lower down the page was "modified and broken":

Note that it didn't alter the opening of the table.

About a week prior, an edit with VE to a page in my userspace that contains an unfinished and unclosed table similarly had all the table syntax deleted exlcuding the first line of the table.

This is obviously very broken in that it leads to significant content corruption, even running together words in the in the second example.

It doesn't happen every time, for example I wasn't able to reproduce it in my sandbox and earlier tests showed that simply removing the closing |} is not sufficient to trigger this.

Possibly this is related to bug 50104 and/or 51172

Version: unspecified
Severity: normal


bzimport set Reference to bz51786.

Sorry that's bug 51172

The problem with [[Hillsboro_Hops_season]] is unclosed quotes for the bgcolor attribute (see snippet below):


- align="center" bgcolor="


Parsoid does attempt to deal with unclosed quotes in table attributes, but its handing can be further improved. (See bug 49839). For now, I would recommend fixing the page.

You can reproduce the bug with the following snippet in your sandbox (all the wikitext elements below are necessary for the bug to show up in its nasty form -- with some pieces removed, Parsoid handles it much better).



! bgcolor="bbbbbb" | Game postponed



- bgcolor="
  • This bug has been marked as a duplicate of bug 49839 ***

Add Comment