Trying to use diff-dom in non-test Node.js project with jsdom, I noticed the document option that allows manually specifying the value, but that option along does not work.
The issue is caused by DiffFInder doing a global typeof Element check that prevents the expected nodeToObj() conversion:
https://github.com/fiduswriter/diffDOM/blob/8f19b20a5e8e1f8d1db488a8b9e26e1fc745ec34/src/diffDOM/virtual/diff.ts#L42C1-L43
Workaround:
dd.diff(nodeToObj(elementA), nodeToObj(elementB));