ladybird/Tests/LibWeb/Text/input/HTML/submit-button-click-when-disabled.html

14 lines
354 B
HTML
Raw Normal View History

2025-03-18 19:28:35 +01:00
<!DOCTYPE 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>