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

[invokers] add an invoke method? #1069

Open
bkardell opened this issue Jul 2, 2024 · 0 comments
Open

[invokers] add an invoke method? #1069

bkardell opened this issue Jul 2, 2024 · 0 comments
Labels

Comments

@bkardell
Copy link
Collaborator

bkardell commented Jul 2, 2024

In the w3c TAG review, there was a closing comment that

We feel it makes sense to have an invoke(action, invoker) method because it lays a path for future interactions with elements. We think that this might be more useful for custom elements or future features that are added to the platform.

We observe that a lack of additional arguments to invocations (or invoke()) are a concession toward the declarative nature of the core feature. Rather than a flaw, we see this as an important characteristic of the design. It simplifies this design and this characteristic seems like it is worth protecting. Richer interactions can remain the domain of script.

I don't know that we ever discussed that or if we feel like the current custom commands is covering this, but I'd like to discuss whether this is useful

I also added #1068 separately for the sentences that immediately followed this- it feels related but also separate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants