Last modified: 2014-03-17 17:30:29 UTC
At https://en.wikipedia.org/w/index.php?title=Churnet_Valley_Railway&diff=prev&oldid=569277862 it seems that a table ending with trailing new line syntax |- |} caused pawns to be added to the article. As discussed at https://en.wikipedia.org/w/index.php?title=Wikipedia:VisualEditor/Feedback&oldid=569732999#Chess_pieces_still_happening this syntax, although technically wrong, will continue to be added to articles. VE and Parsoid should therefore deal with this cleanly without the addition of any pawns to the article.
Pawns are firmly VE territory. Moving to the VisualEditor product.
To perhaps clarify, VE and parsoid should accept both |content |- |} and |content |} as validly closed templates that should be displayed and rendered identically. Both syntaxes should be retained as is when roundtripping.
(In reply to comment #2) > To perhaps clarify, VE and parsoid should accept both > > |content > |- > |} > > and > > |content > |} > > as validly closed templates that should be displayed and rendered > identically. We currently don't strip empty table rows, which seems to be done in some conditions in the PHP parser + tidy combo. We could emulate this behavior in templated content and maybe also outside of templated content, but will need to avoid dirty diffs and preserve WYSIWYG behavior even when another row is added in VE. > Both syntaxes should be retained as is when roundtripping. This should already be the case in Parsoid. I just verified this at http://parsoid.wmflabs.org/_rtform/. Pawn insertion would a DOM modification in VE.
I think this edit https://fr.wikipedia.org/w/index.php?title=Cash_investigation&diff=96500094&oldid=95914321 is related.
Change 119067 had a related patch set uploaded by Esanders: Only insert slugs where paragraphs are allowed https://gerrit.wikimedia.org/r/119067
Change 119067 merged by jenkins-bot: Only insert slugs where paragraphs are allowed https://gerrit.wikimedia.org/r/119067