Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix XMLHttpRequest.onerror param type: ErrorEvent -> ProgressEvent #437

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

Closed
wants to merge 11 commits into from

Conversation

raquo
Copy link
Contributor

@raquo raquo commented Dec 30, 2020

Apparently xhr.onerror listener does not actually receive ErrorEvent-s. Confirmed with MDN and the spec, and tested in Chrome – xhr.onerror listener is getting ProgressEvent-s.

MDN & spec actually say that other xhr event listeners get ProgressEvent-s too, whereas in scala-js-dom onabort, onloadstart et al get js.Any instead. Unless anyone knows why this is the case (IE misbehaving?), should we fix all of these too?

@raquo raquo force-pushed the master branch 2 times, most recently from 6281f7f to 2d16b79 Compare August 5, 2021 19:41
@armanbilge armanbilge changed the base branch from master to series/1.x August 10, 2021 02:17
@japgolly japgolly marked this pull request as draft August 12, 2021 23:54
@japgolly japgolly added this to the v1.2.0 milestone Aug 13, 2021
@japgolly
Copy link
Contributor

This same change was recently merged as part of another PR #379

Thanks though for the PR, and thanks for your patience!

@japgolly japgolly closed this Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants