ladybird/Tests/LibWeb/Text/input/HTML/submit-button-click-when-disabled.html
Andreas Kling 273593afba LibWeb: Don't proceed with Element.click() on disabled form controls
Fixes an infinite reload loop on some of the dom/events/ tests in WPT.
2024-07-26 14:25:04 +02:00

12 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>