Skip to content
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

xhr.abort is inaccurate #23961

Open
mustafa0x opened this issue Jan 29, 2023 · 0 comments
Open

xhr.abort is inaccurate #23961

mustafa0x opened this issue Jan 29, 2023 · 0 comments
Labels
area: Fetch/XMLHttpRequest Content:WebAPI Web API docs effort: medium This task is a medium effort. help wanted If you know something about this topic, we would love your help!

Comments

@mustafa0x
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/abort

What specific section or headline is this issue about?

No response

What information was incorrect, unhelpful, or incomplete?

"The XMLHttpRequest.abort() method aborts the request if it has already been sent. When a request is aborted, its readyState is changed to XMLHttpRequest.UNSENT (0) and the request's status code is set to 0."

What did you expect to see?

Compare to the spec, it's clear that this doesn't cover the second case:

If this’s state is opened with this’s send() flag set, headers received, or loading, then run the request error steps for this and abort.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

@mustafa0x mustafa0x added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jan 29, 2023
@github-actions github-actions bot added the Content:WebAPI Web API docs label Jan 29, 2023
@sideshowbarker sideshowbarker added help wanted If you know something about this topic, we would love your help! effort: medium This task is a medium effort. and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Fetch/XMLHttpRequest Content:WebAPI Web API docs effort: medium This task is a medium effort. help wanted If you know something about this topic, we would love your help!
Projects
None yet
Development

No branches or pull requests

3 participants