Jsdom: Canvas element fails "instanceof HTMLElement"

Created on 30 Jun 2013  路  4Comments  路  Source: jsdom/jsdom

At least the canvas element (I have not tested other) returns false on "element instanceof HTMLElement". It should return true.

bug important or easy

Most helpful comment

window.HTMLElement works. Not sure what that has to do with this issue though.

All 4 comments

It might be connected with the fact that canvas is from another module.

Is there a way to get access to the HTMLElement class directly from jsdom, to be extended in es6 contexts?

window.HTMLElement works. Not sure what that has to do with this issue though.

Confirmed this is still broken as of 6.1.0.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jhegedus42 picture jhegedus42  路  4Comments

kilianc picture kilianc  路  4Comments

Progyan1997 picture Progyan1997  路  3Comments

domenic picture domenic  路  3Comments

kentmw picture kentmw  路  3Comments