Relatedly, but not directly related to this patch, this once again highlights missing documentation / spec about canonical HTML Parsoid expects (for canonical wikitext output) and how it handles variations from that. At our recent offsite, we discussed document a html -> wt spec (not just wt -> html spec that we currently publish) that makes explicit and documents this behavior and identifies inconsistencies that can be fixed.