Example:
<h1>Enormous spider</h1> => <h1>Huge spider</h1>
After applying HtmlDiff:
<del class="diff-html-removed" id="removed-htmldiff-0">Enormous </del><h1><ins class="diff-html-added" id="added-htmldiff-0">Huge </ins>spider</h1>
<del> is outside of <h1> tag, which looks wrong in diff preview.
The same behaviour for <p> tag, it looks like the word was removed from other paragraph.