Empty annotations like <small></small> are converted to meta items. So if you have a bunch of paragraphs like <p>Foo<small></small>bar</p> and delete them all, you end up with a pile of <small></small><small></small>... tags. This is especially bad when this happens in table cells whose row is deleted, because then the <small></small> stuff ends up being foster-parented out of the table.
Related Gerrit Patches:
|mediawiki/extensions/VisualEditor : master||Update VE core submodule to master (d9ece414a)|
|VisualEditor/VisualEditor : master||ve.dm.MetaItem: Add removable flag|
|VisualEditor/VisualEditor : master||ve.dm.MetaItem: Add removable flag, split from internal state|
|Resolved||ppelberg||T197990 Visual editor inserts extraneous blank lines (due to <nowiki/> pulled out of paragraph and then disappearing)|
|Resolved||ppelberg||T96528 Empty annotations cannot be deleted|
Testing this on Beta Cluster just now given the prompt of the old code being abandonned, I confirmed that this is a problem (and possibly it's worse than it was before?):