FIX: Make diffHTML handle external changes (PR #12821)

Changing the contents of the preview element between two uses of diff.innerHTML did not apply the diff correctly.

GitHub

Interesting. Might be worth a comment?