You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Trying to use
diff-dom
in non-test Node.js project withjsdom
, I noticed thedocument
option that allows manually specifying the value, but that option along does not work.The issue is caused by
DiffFInder
doing a globaltypeof Element
check that prevents the expectednodeToObj()
conversion:https://github.com/fiduswriter/diffDOM/blob/8f19b20a5e8e1f8d1db488a8b9e26e1fc745ec34/src/diffDOM/virtual/diff.ts#L42C1-L43
Workaround:
The text was updated successfully, but these errors were encountered: