<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/an-update-on-invokers-invoker-commands-in-html-b2jwy9et5" -->

---
title: An update on invokers: Invoker commands in HTML | daily.dev
description: An update covers the evolving invoker commands proposal for HTML, now using the command/commandfor attribute syntax instead of the earlier naming. It explains...
canonical: https://daily.dev/posts/an-update-on-invokers-invoker-commands-in-html-b2jwy9et5
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: An update on invokers: Invoker commands in HTML | daily.dev
og:description: An update covers the evolving invoker commands proposal for HTML, now using the command/commandfor attribute syntax instead of the earlier naming. It explains...
og:url: https://daily.dev/posts/an-update-on-invokers-invoker-commands-in-html-b2jwy9et5
og:image: https://api.daily.dev/og/posts/b2JwY9eT5.png
og:image:alt: An update on invokers: Invoker commands in HTML
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# An update on invokers: Invoker commands in HTML

**[utilitybend](https://daily.dev/sources/utilitybend)** · 11 min read · 0 upvotes · 0 comments

## Summary

An update covers the evolving invoker commands proposal for HTML, now using the command/commandfor attribute syntax instead of the earlier naming. It explains how to trigger dialogs, popovers, details elements, and form control pickers (date, file, color, select) purely with HTML attributes, plus custom stepper buttons on number inputs, custom JavaScript commands via double-dash prefixes, and custom video/audio playback controls. The feature remains experimental, requiring Chrome Canary flags, though Chrome 135 has begun shipping support for dialogs, popovers, and custom commands. Caveats include missing change events on stepper buttons and incomplete accessibility work, with links to the Open UI explainer, a polyfill, and the HTML spec PR.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://utilitybend.com/blog/an-update-on-invokers-invoker-commands-in-html>

## Questions this post answers

### How do I open a dialog element using only HTML with invoker commands?

Use a button with commandfor referencing the dialog's id and a command attribute set to show-modal, for example <button commandfor="my-modal" command="show-modal">Trigger dialog</button> paired with <dialog id="my-modal">. This opens the dialog in the top layer with its ::backdrop pseudo-element attached, with no JavaScript required. Omitting the command attribute causes an invalid state.

_daily.dev surfaces web platform updates like invoker commands for developers tracking new HTML capabilities._

### Which browser supports the HTML command and commandfor attributes for invoker commands?

Chrome 135 supports invoker commands for dialogs, popovers, and custom commands. Earlier experimentation required enabling Experimental Web Platform features in chrome://flags on Chrome Canary, and video, picker, and stepper examples still need the flags --enable-features=HTMLInvokeActionsV2,HTMLCommandActionsV2 to work. Details element support was delayed from the initial phase.

_Developers testing experimental HTML features can follow rollout progress like this via daily.dev._

### How do I add custom stepper buttons to a number input without JavaScript?

Use two buttons with commandfor pointing to the number input's id, one with command="step-down" and one with command="step-up", alongside the input itself, such as <input type="number" min="1" id="num" value="1">. This respects the input's min, max, and step attributes automatically, though a known caveat is that the change event does not currently fire when clicking these stepper buttons.

_Track emerging HTML input patterns like this stepper approach through daily.dev as the spec evolves._

## Similar posts on daily.dev

- [CSS Wrapped 2025](https://daily.dev/posts/css-wrapped-2025-tcohuvuoq) · Una Kravets · 277 upvotes · 7 comments
- [HTML Invoker Commands Achieve Baseline Support Across All Major Browsers](https://daily.dev/posts/html-invoker-commands-achieve-baseline-support-across-all-major-browsers-luvyny0hj) · InfoQ · 0 upvotes · 0 comments
- [Invoker Commands API - Web APIs](https://daily.dev/posts/invoker-commands-api---web-apis-ejs8qviez) · Hacker News · 1 upvotes · 0 comments
- [HTML Can Do That](https://daily.dev/posts/html-can-do-that-q5qggnxqq) · Lobsters · 6 upvotes · 0 comments
- [CSS Wrapped 2025](https://daily.dev/posts/css-wrapped-2025-9ejczoe0i) · CSS-Tricks · 3 upvotes · 1 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#css](https://daily.dev/tags/css), [#html](https://daily.dev/tags/html), [#google-chrome](https://daily.dev/tags/google-chrome)

[View this post on daily.dev](https://daily.dev/posts/an-update-on-invokers-invoker-commands-in-html-b2jwy9et5)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"An update on invokers: Invoker commands in HTML","url":"https://daily.dev/posts/an-update-on-invokers-invoker-commands-in-html-b2jwy9et5","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/an-update-on-invokers-invoker-commands-in-html-b2jwy9et5"},"datePublished":"2026-09-20T07:43:28.796Z","dateModified":"2026-09-20T07:44:47.840Z","description":"An update covers the evolving invoker commands proposal for HTML, now using the command/commandfor attribute syntax instead of the earlier naming. It explains...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c0a4bd216f566f1941fe79c8e6ec6185?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c0a4bd216f566f1941fe79c8e6ec6185?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"utilitybend","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"utilitybend","logo":"https://media.daily.dev/image/upload/s--hONVFSz4--/f_auto,q_auto/v1789890196/logos/utilitybend?_a=BAMAMicg0","url":"https://daily.dev/sources/utilitybend"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/an-update-on-invokers-invoker-commands-in-html-b2jwy9et5","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"webdev,css,html,google-chrome","timeRequired":"PT11M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"utilitybend","item":"https://daily.dev/sources/utilitybend"},{"@type":"ListItem","position":3,"name":"An update on invokers: Invoker commands in HTML"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/an-update-on-invokers-invoker-commands-in-html-b2jwy9et5#faq","mainEntity":[{"@type":"Question","name":"How do I open a dialog element using only HTML with invoker commands?","acceptedAnswer":{"@type":"Answer","text":"Use a button with commandfor referencing the dialog's id and a command attribute set to show-modal, for example \u003cbutton commandfor=\"my-modal\" command=\"show-modal\"\u003eTrigger dialog\u003c/button\u003e paired with \u003cdialog id=\"my-modal\"\u003e. This opens the dialog in the top layer with its ::backdrop pseudo-element attached, with no JavaScript required. Omitting the command attribute causes an invalid state. daily.dev surfaces web platform updates like invoker commands for developers tracking new HTML capabilities."}},{"@type":"Question","name":"Which browser supports the HTML command and commandfor attributes for invoker commands?","acceptedAnswer":{"@type":"Answer","text":"Chrome 135 supports invoker commands for dialogs, popovers, and custom commands. Earlier experimentation required enabling Experimental Web Platform features in chrome://flags on Chrome Canary, and video, picker, and stepper examples still need the flags --enable-features=HTMLInvokeActionsV2,HTMLCommandActionsV2 to work. Details element support was delayed from the initial phase. Developers testing experimental HTML features can follow rollout progress like this via daily.dev."}},{"@type":"Question","name":"How do I add custom stepper buttons to a number input without JavaScript?","acceptedAnswer":{"@type":"Answer","text":"Use two buttons with commandfor pointing to the number input's id, one with command=\"step-down\" and one with command=\"step-up\", alongside the input itself, such as \u003cinput type=\"number\" min=\"1\" id=\"num\" value=\"1\"\u003e. This respects the input's min, max, and step attributes automatically, though a known caveat is that the change event does not currently fire when clicking these stepper buttons. Track emerging HTML input patterns like this stepper approach through daily.dev as the spec evolves."}}]}
```

