#9103·qwik

[] Missing type definitions for the `commandfor` attribute

Author: tscppCreated Sep 30, 2026Updated Sep 30, 2026

Which component is affected?

Qwik Runtime

Describe the bug

Type definitions is missing for the commandfor attribute on the button element.

typescript
<button command="close" commandfor="foo">
//                      ^ Property 'commandfor' does not exist on type '...'. Did you mean 'command'?

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button#commandfor https://html.spec.whatwg.org/multipage/form-elements.html#attr-button-commandfor

Reproduction

https://stackblitz.com/edit/github-aqveecge?file=src%2Froutes%2Findex.tsx&view=editor

Steps to reproduce

Check src/routes/index.tsx for the diagnostic on the commandfor attribute. The reproduction seems unreliable for type checks though. Adding the command attribute also seems to create a diagnostic.

System Info

bash
System:
    OS: Linux 7.2 Fedora Linux 44 (Workstation Edition)
    CPU: (12) x64 AMD Ryzen 5 5600X 6-Core Processor
    Memory: 21.95 GB / 31.27 GB
    Container: Yes
    Shell: 5.3.9 - /bin/bash
  Binaries:
    Node: 26.3.0 - /home/elsk/.local/share/devbox/global/default/.devbox/nix/profile/default/bin/node
    npm: 11.16.0 - /home/elsk/.local/share/devbox/global/default/.devbox/nix/profile/default/bin/npm
    bun: 1.3.13 - /home/elsk/.local/share/devbox/global/default/.devbox/nix/profile/default/bin/bun
    Deno: 2.9.5 - /home/elsk/.local/share/devbox/global/default/.devbox/nix/profile/default/bin/deno
  Browsers:
    Brave Browser: 154.1.96.59
    Firefox Developer Edition: 156.0.1

Additional Information

I'm creating a PR right now.