-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Description
Running a webapp inside JSDOM, I observe the following test failing:
let input: HTMLInputElement = ...; // got this from the DOM
let ok = input instanceof Object; // true in a browser, false in JSDOMDoes it make any sense?
I observe that the prototype chain of the "fake" HTMLInputElement goes to a fake Object and not the real Node one, but shouldn't the Object in the code above also point to the same fake object?
To be clear: this code is running inside the webapp+JSDOM, not in the main Node code.
mjdease and sularome
Metadata
Metadata
Assignees
Labels
No labels