Parsoid/Normalizations

While serializing (html2wt), Parsoid performs a number of normalizations, some behind a  flag.

Most can be found in wts.normalizeDOM.js

Default

 * Tag minimization ( / tags)
 * Force SOL transparent links and behaviour switches to serialize before/after headings (only performed on new nodes)
 * Serialize invalid  tags to text
 * Enforce single-line context (in headings and lists)

scrubWikitext

 * Strip empty headings (only performed on new nodes)
 * Tag minimization ( tags, when at least one is new)