-
Notifications
You must be signed in to change notification settings - Fork 297
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
Proposal: Allow WebIDL binding to expose parameters' types and enums' values #1183
Comments
(Clarification - function parameters are exposed as an array; dictionary members as a dictionary.) |
I'm not sure why we should have many new issues to discuss this when we couldn't even get whatwg/webidl#107 resolved? |
François and I have filed two new proposals for tackling this problem because we believed this would be the best way to facilitate renewed/continued discussion of the topic. If you think there's a better way, such as continuing on the original thread, please give us a specific proposal. We welcome meta-feedback on the best way to engage in this forum. But even more than that, we are eager to hear your thoughts on our specific proposals. |
I have to say that I don't really see any new arguments presented. Also, I recommend reading through https://whatwg.org/faq#adding-new-features. We don't typically start with proposals, unless there's already agreement that the problem is worth solving. |
It appears to me self-evident that the problem is worth our attention, based on some messages in the original thread. Naming two examples: Rick Byers wrote:
The above message represents multiple parties who might not be actively participating in the discussion, but whose interests we should keep in mind. Then you (@annevk) wrote:
This latter message I read as implicitly acknowledging that purpose-built Given that sufficient interest in the problem exists, it seems that a new proposal could in theory provide just the right multiway trade-off, and that bringing up such new proposals could be good use of our time. |
Consider a Web app that calls a method exposed by the browser.
@beaufortfrancois has raised the same issue in #1181. I suspect we might have both been prompted by the same recent discussion. François' proposal is interesting. I'd like to enrich the discussion by adding one more possible solution.
The new tag would then produce bindings that would allow something like this:
Because this is recursive, it could even extend to real use-cases we're encountering in the field, which are somewhat complex:
We could also add an
[ExposeParametersAs]
tag to allow the exposure point of this metadata somewhere other than.parameters
. But IMHO that doesn't matter much, as I am not familiar with any existing method exposed by the UA, where.parameters
is taken. (Not to be confused with a parameter called "parameters", btw.)Comparing the two proposals (the current one and #1181):
The text was updated successfully, but these errors were encountered: