The Invoker Commands API is the new hotness for a declarative #HTML 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. 👏 #JavaScript #WebComponents #WebDev
https://thathtml.blog/2025/07/more-fun-with-invoker-commands-web-components/

More Fun with Invoker Commands and Web Components
This is a huge step forward for the vanilla web feeling like it’s a bona fide application development platform rather than a glorified document viewer.
thathtml.blog · That HTML Blog
Link author: Jared “Indie Social Web” White@jaredwhite@indieweb.social