Module: html2wt/normalizeDOM

DOM normalization.

DOM normalizations are performed after DOMDiff is run. So, normalization routines should update diff markers appropriately.

SSS FIXME: Once we simplify WTS to get rid of rt-test mode, we should be able to get rid of the 'children-changed' diff marker and just use the more generic 'subtree-changed' marker.

Classes

Normalizer

Methods

(inner) mergable()

Can a and b be merged into a single node?

.

Can a and b be merged into a single node?

Source:

(inner) swappable()

Can a and b be combined into a single node if we swap a and a.firstChild?

For example: A='x' b='y' => 'xy'.

Can a and b be combined into a single node if we swap a and a.firstChild?

For example: A='x' b='y' => 'xy'.

Source: