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

Remove reference to mode: "websocket" in RequestInit #36200

Merged
merged 1 commit into from
Oct 5, 2024

Conversation

dead-claudia
Copy link
Contributor

Description

Title's self-explanatory

Motivation

In https://fetch.spec.whatwg.org/#request-class, there's an explicit note that this value is excluded from the RequestMode enum as it's not intended to be observable from JS.

Additional details

I was working on my spec suggestion in whatwg/websockets#16 (comment), was going through you to a relevant section of the fetch spec, and was surprised the mode existed. I then cross-referenced the spec with you all, and found that your listing of that mode was erroneous.

Related issues and pull requests

In https://fetch.spec.whatwg.org/#request-class, there's an explicit note that this value is excluded from the `RequestMode` enum as it's not intended to be observable from JS.
@dead-claudia dead-claudia requested a review from a team as a code owner October 5, 2024 02:33
@dead-claudia dead-claudia requested review from sideshowbarker and removed request for a team October 5, 2024 02:33
@github-actions github-actions bot added Content:WebAPI Web API docs size/xs [PR only] 0-5 LoC changed labels Oct 5, 2024
Copy link
Contributor

github-actions bot commented Oct 5, 2024

Preview URLs

Copy link
Collaborator

@wbamberg wbamberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 nice catch, thank you!

@wbamberg wbamberg merged commit 4f0efd0 into mdn:main Oct 5, 2024
7 checks passed
@dead-claudia dead-claudia deleted the patch-1 branch October 6, 2024 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs size/xs [PR only] 0-5 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants