From https://prv-tests.wmcloud.org/diff/viwiki/Doraemon
Snippit,
<table><tr><td>x</td></tr></table></tr> foo bar
Note that both parsers will have the same output if the stray </tr> is on its own line, Parsoid's output is a bit more consistent
$closeMatch is pretty naive
https://github.com/wikimedia/mediawiki/blob/master/includes/Parser/BlockLevelPass.php#L325-L334