Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/forms/resetting-a-form/reset-event.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>Test aspects of the reset event</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
async_test((t) => {
var form = document.createElement("form")
form.onreset = t.step_func_done((e) => {
assert_true(e.bubbles)
assert_true(e.cancelable)
assert_true(e.isTrusted)
assert_equals(e.target, form)
})
form.reset()
assert_unreached()
})
</script>