Class: DOMPostProcessor

wt2html/DOMPostProcessor~DOMPostProcessor(env, options)

new DOMPostProcessor(env, options)

...
Parameters:
Name Type Description
env MWParserEnvironment
options Object
Source:

Extends

Methods

addListenersOn()

Register for the 'document' event, normally emitted from the HTML5 tree builder.

Register for the 'document' event, normally emitted from the HTML5 tree builder.

Source:

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:

setPipelineId()

Debugging aid: set pipeline id

.

Debugging aid: set pipeline id

Source: