Page MenuHomePhabricator

MediaWiki Visual editor drops valign="top" from table row
Open, Needs TriagePublicBUG REPORT

Description

List of steps to reproduce
I have a table:

{| class="plainlinks"
|- valign="top"
| style="width:50%" |
...
|
...
|}

What happens?:

When saving the text from the Visual Editor the following line is not stored:

|- valign="top"

Table is stored as:

{| class="plainlinks"
|-
| style="width:50%" |
...
|
...
|}

Result:

  1. the table row is not aligned at the top...
  2. I need to edit the page again with the Tag editor and add the line valign="top" again

What should have happened instead?:

The valign="top" option should be stored with the top row of the table.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:

MediaWiki 1.39.0-wmf.7 (800f261)
12 apr 2022 02:08

Event Timeline

I can't reproduce the problem, valign="top" was not lost in this edit: https://en.wikipedia.beta.wmflabs.org/w/index.php?title=T306207&diff=544640&oldid=544639&diffmode=source

Can you link to some example edits where the problem occurred?

Real-live example of a manual correction after the valign="top" was lost:

I believe that the error might also occur when switching back and forth between the Visual editor and the Tag editor?

Thanks. I believe you that it's a real problem, but I was looking for an example of it occurring so that I could try to reproduce it and debug it. Otherwise it's almost impossible to guess what could be causing it.