-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use different approach to check instanceof Element #95
Comments
The same is true when using Proxies. It's enough to wrap an element in a Proxy to get this error. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
instanceof
check does not always work correctly, especially when you work with elements created in a different contexts.To demonstrate run this on some page:
Suggested changes:
Stop using getWindow function and replace it with this one.
The text was updated successfully, but these errors were encountered: