PHP parser does not recognize "|}" as a table closing tag on a non-empty line (which is how we end up with a pages on WPs with stray trailing |} wikitext on some lines). However, Parsoid recognizes them as a valid closing tag which then causes us to spectacularly bomb on those pages (Parsoid tries to recover and fix up, etc. but which doesn't always work).
The right fix is to fix the tokenizer to require "|}" to be on a new line (leading whitespace and and other sol-transparent text should be fine).
Version: unspecified
Severity: normal