WPT
wpt / dom / events / Event-defaultPrevented.html
Spec: DOM ↗
Runs: Chrome 155.0.8039.0 (wpt@a4fcd77aa, 2026-09-03) | Firefox 157.0a1 (wpt@cc4d45aa0, 2026-09-03) | Safari 251 preview (wpt@5ce815a83, 2026-08-27) | Ladybird 1.0-a9df8 (wpt@9b4cabf6d, 2026-09-03) | Servo Servo 0.6 (wpt@7e3d005d7, 2026-09-03) | Blitz 188486089 (wpt@a95401e4e, 2026-09-02)
View on the Blitz WPT dashboard | Open test on wpt.live | wpt.fyi
| Chrome | Firefox | Safari | Ladybird | Servo | Blitz | |
|---|---|---|---|---|---|---|
| Total | 8/8 | 8/8 | 8/8 | 8/8 | 8/8 | NOT RUN |
| Subtest | Chrome | Firefox | Safari | Ladybird | Servo | Blitz |
|---|---|---|---|---|---|---|
| When an event is created, defaultPrevented should be initialized to false. | PASS | PASS | PASS | PASS | PASS | — |
| initEvent should work correctly (not cancelable). | PASS | PASS | PASS | PASS | PASS | — |
| preventDefault() should not change defaultPrevented if cancelable is false. | PASS | PASS | PASS | PASS | PASS | — |
| returnValue should not change defaultPrevented if cancelable is false. | PASS | PASS | PASS | PASS | PASS | — |
| initEvent should work correctly (cancelable). | PASS | PASS | PASS | PASS | PASS | — |
| preventDefault() should change defaultPrevented if cancelable is true. | PASS | PASS | PASS | PASS | PASS | — |
| returnValue should change defaultPrevented if cancelable is true. | PASS | PASS | PASS | PASS | PASS | — |
| initEvent should unset defaultPrevented. | PASS | PASS | PASS | PASS | PASS | — |