WPT
wpt / html / semantics / forms / the-button-element / button-click-submits-with-commandfor.html
Spec: HTML ↗
Runs: Chrome 155.0.8043.0 (wpt@b89af32bc, 2026-09-05) | Firefox 157.0a1 (wpt@b89af32bc, 2026-09-05) | Safari 251 preview (wpt@b89af32bc, 2026-09-05) | Ladybird 1.0-8b5a4 (wpt@b89af32bc, 2026-09-06) | Servo Servo 0.6 (wpt@b89af32bc, 2026-09-06) | Blitz a50cb8971 (wpt@a95401e4e, 2026-09-03)
View on the Blitz WPT dashboard | Open test on wpt.live | wpt.fyi
| Chrome | Firefox | Safari | Ladybird | Servo | Blitz | |
|---|---|---|---|---|---|---|
| Total | 6/6 | 6/6 | 6/6 | 6/6 | 6/6 | NOT RUN |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| clicking a button (implicit type) should NOT trigger a submit (with command attribute) | PASS | PASS | PASS | PASS | PASS | — |
| clicking a button (implicit type) should NOT trigger a submit (with commandfor attribute) | PASS | PASS | PASS | PASS | PASS | — |
| clicking a button (implicit type) should NOT trigger a submit (with command and commandfor attribute) | PASS | PASS | PASS | PASS | PASS | — |
| clicking a button (explicit type=submit) SHOULD trigger a submit (with command attribute) | PASS | PASS | PASS | PASS | PASS | — |
| clicking a button (explicit type=submit) SHOULD trigger a submit (with commandfor attribute) | PASS | PASS | PASS | PASS | PASS | — |
| clicking a button (explicit type=submit) SHOULD trigger a submit (with command and commandfor attribute) | PASS | PASS | PASS | PASS | PASS | — |