Module mt_dom::diff

source ·
Expand description

provides diffing algorithm which returns patches

Functions§

  • diff the nodes recursively
  • calculate the difference of 2 nodes if the skip function evaluates to true, then diffing of the node and all of it’s descendant will be skipped entirely and then proceed to the next node.
  • Return the patches needed for old_node to have the same DOM as new_node