WPT
wpt / html / semantics / the-button-element / command-and-commandfor / button-event-dispatch.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-0c53a (wpt@b89af32bc, 2026-09-05) | Servo Servo 0.6 (wpt@2c385f65e, 2026-09-04) | 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 | 57/57 | 38/57 | 38/57 | 38/57 | 34/57 | NOT RUN |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| event dispatches on click with addEventListener | PASS | FAIL | FAIL | FAIL | FAIL | — |
| event dispatches on click with oncommand property | PASS | FAIL | FAIL | FAIL | FAIL | — |
| setting custom command property to --foo (must include dash) sets event command | PASS | FAIL | FAIL | FAIL | FAIL | — |
| setting custom command attribute to --foo (must include dash) sets event command | PASS | FAIL | FAIL | FAIL | FAIL | — |
| setting custom command property to --foo- (must include dash) sets event command | PASS | FAIL | FAIL | FAIL | FAIL | — |
| setting custom command attribute to --foo- (must include dash) sets event command | PASS | FAIL | FAIL | FAIL | FAIL | — |
| setting custom command property to --cAsE-cArRiEs (must include dash) sets event command | PASS | FAIL | FAIL | FAIL | FAIL | — |
| setting custom command attribute to --cAsE-cArRiEs (must include dash) sets event command | PASS | FAIL | FAIL | FAIL | FAIL | — |
| setting custom command property to -- (must include dash) sets event command | PASS | FAIL | FAIL | FAIL | FAIL | — |
| setting custom command attribute to -- (must include dash) sets event command | PASS | FAIL | FAIL | FAIL | FAIL | — |
| setting custom command property to --a- (must include dash) sets event command | PASS | FAIL | FAIL | FAIL | FAIL | — |
| setting custom command attribute to --a- (must include dash) sets event command | PASS | FAIL | FAIL | FAIL | FAIL | — |
| setting custom command property to --a-b (must include dash) sets event command | PASS | FAIL | FAIL | FAIL | FAIL | — |
| setting custom command attribute to --a-b (must include dash) sets event command | PASS | FAIL | FAIL | FAIL | FAIL | — |
| setting custom command property to --- (must include dash) sets event command | PASS | FAIL | FAIL | FAIL | FAIL | — |
| setting custom command attribute to --- (must include dash) sets event command | PASS | FAIL | FAIL | FAIL | FAIL | — |
| setting custom command property to --show-picker (must include dash) sets event command | PASS | FAIL | FAIL | FAIL | FAIL | — |
| setting custom command attribute to --show-picker (must include dash) sets event command | PASS | FAIL | FAIL | FAIL | FAIL | — |
| setting custom command property to -foo (no dash) did not dispatch an event | PASS | PASS | PASS | PASS | PASS | — |
| setting custom command attribute to -foo (no dash) did not dispatch an event | PASS | PASS | PASS | PASS | PASS | — |
| setting command attribute to -foo (no dash) did not dispatch an event with an svg target | PASS | PASS | PASS | PASS | PASS | — |
| setting custom command property to -foo- (no dash) did not dispatch an event | PASS | PASS | PASS | PASS | PASS | — |
| setting custom command attribute to -foo- (no dash) did not dispatch an event | PASS | PASS | PASS | PASS | PASS | — |
| setting command attribute to -foo- (no dash) did not dispatch an event with an svg target | PASS | PASS | PASS | PASS | PASS | — |
| setting custom command property to foo-bar (no dash) did not dispatch an event | PASS | PASS | PASS | PASS | PASS | — |
| setting custom command attribute to foo-bar (no dash) did not dispatch an event | PASS | PASS | PASS | PASS | PASS | — |
| setting command attribute to foo-bar (no dash) did not dispatch an event with an svg target | PASS | PASS | PASS | PASS | PASS | — |
| setting custom command property to -foo bar (no dash) did not dispatch an event | PASS | PASS | PASS | PASS | PASS | — |
| setting custom command attribute to -foo bar (no dash) did not dispatch an event | PASS | PASS | PASS | PASS | PASS | — |
| setting command attribute to -foo bar (no dash) did not dispatch an event with an svg target | PASS | PASS | PASS | PASS | PASS | — |
| setting custom command property to —-emdash (no dash) did not dispatch an event | PASS | PASS | PASS | PASS | PASS | — |
| setting custom command attribute to —-emdash (no dash) did not dispatch an event | PASS | PASS | PASS | PASS | PASS | — |
| setting command attribute to —-emdash (no dash) did not dispatch an event with an svg target | PASS | PASS | PASS | PASS | PASS | — |
| setting custom command property to hidedocument (no dash) did not dispatch an event | PASS | PASS | PASS | PASS | PASS | — |
| setting custom command attribute to hidedocument (no dash) did not dispatch an event | PASS | PASS | PASS | PASS | PASS | — |
| setting command attribute to hidedocument (no dash) did not dispatch an event with an svg target | PASS | PASS | PASS | PASS | PASS | — |
| event does not dispatch if click:preventDefault is called | PASS | PASS | PASS | PASS | PASS | — |
| event does not dispatch on input[type=button] | PASS | PASS | PASS | PASS | PASS | — |
| event does not dispatch if invoker is disabled | PASS | PASS | PASS | PASS | PASS | — |
| event does NOT dispatch if button is form associated, with implicit type | PASS | PASS | PASS | PASS | PASS | — |
| event does NOT dispatch if button is form associated, with explicit type=invalid | PASS | PASS | PASS | PASS | PASS | — |
| event dispatches if button is form associated, with explicit type=button | PASS | FAIL | FAIL | FAIL | FAIL | — |
| event does NOT dispatch if button is form associated, with explicit type=submit | PASS | PASS | PASS | PASS | PASS | — |
| event does NOT dispatch if button is form associated, with explicit type=reset | PASS | PASS | PASS | PASS | PASS | — |
| event dispatches if invokee is non-HTML Element and command is custom | PASS | PASS | PASS | PASS | FAIL | — |
| setting command to show-modal did not dispatch an event for invalid element | PASS | PASS | PASS | PASS | PASS | — |
| setting command to show-modal did not dispatch an event for svg element | PASS | PASS | PASS | PASS | PASS | — |
| setting command to close did not dispatch an event for invalid element | PASS | PASS | PASS | PASS | PASS | — |
| setting command to close did not dispatch an event for svg element | PASS | PASS | PASS | PASS | PASS | — |
| setting command to request-close did not dispatch an event for invalid element | PASS | PASS | PASS | PASS | PASS | — |
| setting command to request-close did not dispatch an event for svg element | PASS | PASS | PASS | PASS | PASS | — |
| setting command to show-popover did dispatch an event for element without popover attribute | PASS | PASS | PASS | PASS | FAIL | — |
| setting command to show-popover did not dispatch an event for svg element | PASS | PASS | PASS | PASS | PASS | — |
| setting command to hide-popover did dispatch an event for element without popover attribute | PASS | PASS | PASS | PASS | FAIL | — |
| setting command to hide-popover did not dispatch an event for svg element | PASS | PASS | PASS | PASS | PASS | — |
| setting command to toggle-popover did dispatch an event for element without popover attribute | PASS | PASS | PASS | PASS | FAIL | — |
| setting command to toggle-popover did not dispatch an event for svg element | PASS | PASS | PASS | PASS | PASS | — |