- From: Martin Thomson <notifications@github.com>
- Date: Wed, 19 Feb 2025 19:29:56 -0800
- To: w3ctag/design-reviews <design-reviews@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 20 February 2025 03:30:00 UTC
martinthomson left a comment (w3ctag/design-reviews#920) As far as custom invokers, that makes sense. We discussed this and we're OK with this being something that gets added later. After all, it isn't that hard to add something like the following if it proves useful: ```js Whatever.prototype.invoke = function(cmd, options) { this.dispatchEvent(new CommandEvent(cmd, options)); } ``` After doing some digging on the discoverability thing, we agreed that it isn't worth burdening you with solving [a longstanding platform issue](https://github.com/whatwg/webidl/issues/107) for this case. This is a pretty serious gap in our discoverability, but that's a shared responsibility. That said, I suspect that even if that problem were solved for other APIs, some of those solutions would not help with this specific API, given it's shape, so I'd encourage you to think about what `isValidCommand()` or something like it might need to look like to be useful, if only for platform (non-custom) invocation targets. -- Reply to this email directly or view it on GitHub: https://github.com/w3ctag/design-reviews/issues/920#issuecomment-2670376571 You are receiving this because you are subscribed to this thread. Message ID: <w3ctag/design-reviews/issues/920/2670376571@github.com>
Received on Thursday, 20 February 2025 03:30:00 UTC