-
Notifications
You must be signed in to change notification settings - Fork 421
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
onerror for Elements is incorrect #1821
Comments
This is a bit awkward situation as img inherits from GlobalEventHandlers. I wonder we can somehow override it? |
@saschanaz I ran this code, const img = document.createElement('img')
img.onerror = (...args) => console.log(args.length, ...args)
img.src = '@#$%' and it logs an Hmm, maybe the parameter type needs to be just |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
playground
Only
Window.onerror
should have the alternative signature, but not elements. See:The text was updated successfully, but these errors were encountered: