The Invoker Commands API is the new hotness for a declarative solution to the problem “click and see something happen!!”

However…

If we’re inside shadow DOM and the button being clicked is supposed to do a thing via its host component, then uh, nope. 🤨

Thankfully there’s always a workaround in the Wide World of the Web, so I’ve written it up and here it is!

😁 Yay for building directly on top of platform mechanics. 👏

thathtml.blog/2025/07/more-fun

0

If you have a fediverse account, you can quote this note from your own instance. Search https://intuitivefuture.com/users/vanillaweb/statuses/114915090807336353 on your instance and quote it. (Note that quoting is not supported in Mastodon.)