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
attachEvent is not need #474
Comments
Thanks for reporting @ocknamo! 🙂
It was added to solve the problems in this issue: Do you have some examples of libraries that fails? |
This is related to the lack of support for the
Well, now apparently it supports But the root problem is the lack of support for |
Oh, actually, that's not exactly correct. What React does is this (source):
It attempts to assign an event handler by setting an attribute and then checks if it got turned into a function, which is what a browser would do:
But happy-dom doesn't do that:
|
Thanks a lot for happy-dom.
I think I have discovered that happy-dom is creating attachEvents.
I think attachEvent is unnecessary because it is an old IE only implementation.
Also, when the test is run, polyfills from other libraries are executed and an error occurs. (eg. socket.io-client)
It is not a high priority because it can be avoided as follows.
Thanks.
The text was updated successfully, but these errors were encountered: