We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://websockets.spec.whatwg.org/#dom-websocket-websocket says
Let client be this's relevant settings object.
client is used for base URL for parsing relative URLs. This was introduced in #45
I think "relevant" should be "current". See web-platform-tests/wpt#39978 (comment)
WebSocket spec says to use the relevant settings object, but going by the example in https://html.spec.whatwg.org/multipage/webappapis.html#realms-settings-objects-global-objects there's no way to test for the relevant settings object for a constructor (vs a method), since you can't use .call() with a constructor. I used current instead, like Workers, but this needs a spec change.
WebSocket spec says to use the relevant settings object, but going by the example in https://html.spec.whatwg.org/multipage/webappapis.html#realms-settings-objects-global-objects there's no way to test for the relevant settings object for a constructor (vs a method), since you can't use .call() with a constructor.
.call()
I used current instead, like Workers, but this needs a spec change.
current
The text was updated successfully, but these errors were encountered:
Inside constructors, "this's relevant settings object" === "current settings object", because of how "this" is constructed. So both are correct.
Sorry, something went wrong.
OK. Can we have a note to that effect?
I'm not sure we need to add that to every spec that uses constructors, but maybe we could add it around https://html.spec.whatwg.org/#concept-relevant-everything ?
Yeah, good point. I'll open an issue for html.
No branches or pull requests
https://websockets.spec.whatwg.org/#dom-websocket-websocket says
client is used for base URL for parsing relative URLs. This was introduced in #45
I think "relevant" should be "current". See web-platform-tests/wpt#39978 (comment)
The text was updated successfully, but these errors were encountered: