Closed rayd closed 6 years ago
Thanks! I like this implementation. Did you test this with jsdom
by chance?
I haven't actually - just with Chrome, Firefox and PhantomJS - any suggestions for testing with jsdom
?
I did a manual sanity test and it looks fine. I should add another test target or such for jsdom
.
:+1: awesome, thank you for being so responsive!
No problem! 1.8.0
is released with the improvement. Thanks for the contribution.
This is a proposed fix for #8: In order to support making assertions against elements that exist within another iframe, we cannot use
instanceof
to check if we should override the Assertion method. This fails becausewindow.HTMLElement !== otherWindow.HTMLElement
. Instead use thenodeType
property to check if we're dealing with an element, or for theNodeList
check use the class name.