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

Replace "context object" with "this" once IDL is updated #652

Closed
marcoscaceres opened this issue Jun 5, 2018 · 4 comments
Closed

Replace "context object" with "this" once IDL is updated #652

marcoscaceres opened this issue Jun 5, 2018 · 4 comments
Labels
clarification Standard could be clearer

Comments

@marcoscaceres
Copy link
Member

DOM defines a generally useful "context object" definition in its infrastructure section. I'm planning to use it in Payment Request, because we have a bunch of "Let foo be the Foo on which this method was called." ... but "Let foo be the context object." is way nicer.

Anyway, could we move "context object" to the Infra spec, as it seems generally useful?

@annevk
Copy link
Member

annevk commented Jun 5, 2018

The plan is for IDL to expose "this" to specification algorithms. See https://www.w3.org/Bugs/Public/show_bug.cgi?id=27301. I thought we had a newer issue for that, but I cannot find it. @tobie?

@tobie
Copy link
Contributor

tobie commented Jun 5, 2018

I think there's just an open PR: ~~~whatwg/webidl#258~~~ whatwg/webidl#495.

@annevk
Copy link
Member

annevk commented Jun 5, 2018

That's slots, not "this", no?

@tobie
Copy link
Contributor

tobie commented Jun 5, 2018

Right, it's part of the slots proposal, but that what the wrong link. There you go: whatwg/webidl#495.

@annevk annevk changed the title can context object move to infra? Replace "context object" with "this" once IDL is updated Sep 14, 2018
@annevk annevk added the clarification Standard could be clearer label Sep 14, 2018
@annevk annevk closed this as completed in e15774f Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification Standard could be clearer
Development

No branches or pull requests

3 participants