Module: wt2html/pp/handlers/prepareDOM

Methods

(inner) prepareDOM()

Migrate data-parsoid attributes into a property on each DOM node.

Migrate data-parsoid attributes into a property on each DOM node. We may migrate them back in the final DOM traversal.

Various mw metas are converted to comments before the tree build to avoid fostering. Piggy-backing the reconversion here to avoid excess DOM traversals.

Source: