By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: HTML Invoker Commands Achieve Baseline Support Across All Major Browsers
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > News > HTML Invoker Commands Achieve Baseline Support Across All Major Browsers
News

HTML Invoker Commands Achieve Baseline Support Across All Major Browsers

News Room
Last updated: 2026/01/28 at 3:21 AM
News Room Published 28 January 2026
Share
HTML Invoker Commands Achieve Baseline Support Across All Major Browsers
SHARE

The HTML Invoker Commands API has achieved baseline support across all major browsers, with Safari 26.2 completing the rollout following earlier releases in Chrome 135 and Firefox 144. The feature introduces declarative button controls that eliminate the need for JavaScript when working with popovers, dialogs, and other interactive elements.

The Invoker Commands API adds two new attributes to button elements: commandfor and command. The commandfor attribute takes the ID of the element to control, whilst command specifies the action to perform. This declarative approach allows developers to create interactive components without writing event listeners or waiting for JavaScript to download and execute, improving initial page interactivity.

Built-in commands support common operations for popovers and dialogs. For popovers, developers can use toggle-popover, show-popover, and hide-popover commands. Dialogs support show-modal and close commands. An example of a declarative popover implementation is shown below:




Popover content

The API also enables custom commands, which must be prefixed with two dashes, similar to CSS custom properties. Developers can listen for these commands using the command event and check the command name on the event object. This allows component authors to create declarative APIs for their web components without requiring consumers to write JavaScript.

A medium article described the API as the coolest API you aren’t using yet and expressed enthusiasm that invokers let your buttons actually do stuff without JavaScript.

Developer Pawel Grzybek noted that every time the web ships new features that let us shift the implementation left on the stack, I’m excited about it describing the API as moving the implementation of button click handlers upstream to the HTML.

Elsewhere, CSS-Tricks observed that custom commands rely on event handler HTML attributes, noting this is maybe a bit (or definitely a lot) controversial since using event handler HTML attributes is considered bad practice.

For developers currently using the popovertarget and popovertargetaction attributes, the Invoker Commands API provides a more unified approach. Popovers can now use either the existing popover-specific attributes or the new command and commandfor attributes, allowing gradual migration.

Compared to libraries like HTMX, which provide declarative controls through custom attributes, Invoker Commands offer similar functionality as a native platform feature. The Open UI explainer notes that whilst the initial release focuses on popovers and dialogs, support for additional elements such as

was deferred but may be added in future iterations.

The Invoker Commands API is defined in the WHATWG HTML specification and represents a continued effort to reduce JavaScript dependencies for common interactive patterns. By enabling developers to create interactive components declaratively, the API improves both developer experience and user experience through faster initial page loads and more accessible markup.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Intel, more chips for AI, less for personal computing Intel, more chips for AI, less for personal computing
Next Article China’s chip production soars 40% in Q1 despite US constraints · TechNode China’s chip production soars 40% in Q1 despite US constraints · TechNode
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

iPhone 18 Pro Could Feature Teleconverter Alongside Variable Aperture
iPhone 18 Pro Could Feature Teleconverter Alongside Variable Aperture
News
Google BigQuery Adds SQL-Native Managed Inference for Hugging Face Models
Google BigQuery Adds SQL-Native Managed Inference for Hugging Face Models
News
TikTok goes down in the US, blames power outages
TikTok goes down in the US, blames power outages
Gadget
Nintendo Switch 2 is getting two canceled classics this year
Nintendo Switch 2 is getting two canceled classics this year
Software

You Might also Like

iPhone 18 Pro Could Feature Teleconverter Alongside Variable Aperture
News

iPhone 18 Pro Could Feature Teleconverter Alongside Variable Aperture

3 Min Read
Google BigQuery Adds SQL-Native Managed Inference for Hugging Face Models
News

Google BigQuery Adds SQL-Native Managed Inference for Hugging Face Models

4 Min Read
'Shrinking' Season 3: When Does Apple TV's Hit Comedy Return?
News

'Shrinking' Season 3: When Does Apple TV's Hit Comedy Return?

5 Min Read
OpenAI and Booking.com to launch accelerator programme in the UK – UKTN
News

OpenAI and Booking.com to launch accelerator programme in the UK – UKTN

2 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?