Re: [w3ctag/design-reviews] Invokers API (Issue #920)

@plinss and I discussed this briefly and while we think the overall capability looks good, we have some questions:

Is there a way to detect that this feature exists?

Why is there no generic `.invoke()` method for invocation targets?  If targets have default action (called "auto"?) this might make it more ergonomic for authors rather than needing to work out how to achieve an action.

Why does `<details>` have "toggle" and "auto" actions doing the same thing?

Why does the `<dialog>` "toggle" action do the same thing as "cancel"?  Why does this not show the dialog when it is not already open?

Is there a polyfill planned?

Does invoking alter focus?  If something is invoked, does that receive focus?  It seems like this would usually be the case, but some actions might not need that. Pausing a video doesn't need to draw focus, but you would want to focus `<select>` or `<dialog>` or a popover.  Whatever the behavior is, it should be specified so to be consistent across UAs.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/920#issuecomment-1965332617
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/issues/920/1965332617@github.com>

Received on Monday, 26 February 2024 21:35:10 UTC