Module: html2wt/SelectiveSerializer

This is a Serializer class that will compare two versions of a DOM and re-use the original wikitext for unmodified regions of the DOM. Originally this relied on special change markers inserted by the editor, but we now generate these ourselves using DOMDiff.



If we have the page source (, we use the selective serialization method, only reporting the serialized wikitext for parts of the page that changed.