A much more recent take on this may be found in the thread: cmp two HTML fragments
HTH,
In reply to Re: HTML Document Comparison by planetscape in thread HTML Document Comparison by xjar