r/programming • u/KerrickLong • Mar 09 '25
Introducing command And commandfor In HTML
https://developer.chrome.com/blog/command-and-commandfor
92
Upvotes
r/programming • u/KerrickLong • Mar 09 '25
View all comments
Show parent comment
4
u/KerrickLong Mar 10 '25
Firefox nightly implemented: https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/commandForElement
WebKit position: support: https://github.com/WebKit/standards-positions/issues/264
Commandfor spec: https://html.spec.whatwg.org/multipage/form-elements.html#attr-button-commandfor
Command spec: https://html.spec.whatwg.org/multipage/form-elements.html#attr-button-command