mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-11 17:37:00 +02:00
Fixes an infinite reload loop on some of the dom/events/ tests in WPT. (cherry picked from commit 273593afba71a42f1d760ac5b6664b77f74ffb7a)
13 lines
338 B
HTML
13 lines
338 B
HTML
<form id="theForm" style="display:none"><button id="theButton" type="submit" disabled></button></form>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
theForm.onclick = function() {
|
|
println("FAIL! Should not click!");
|
|
}
|
|
|
|
test(() => {
|
|
theButton.click();
|
|
println("PASS! Did not click");
|
|
});
|
|
</script>
|