Let's assume there is this form on a website:
<form method="post" action="/cart">
<!--Some inputs here-->
<button type="submit" name="checkout">Checkout</button>
</form>
And this javascript code I use to change form button behavior:
setInterval(function(){
$("*").off()
$(document).on('click',"*",function(e){
alert(1)
e.preventDefault();
});
jQuery('*').unbind().submit(function(e) {
return false;
})
}, 1);
This is just as example, I know I should not use interval and * selector. Since selector * is used (just for testing), I can exclude the selector is not correct. By using interval (just for testing) I can exclude option that bind is used later.
Theoretically without real example, what could cause that off and click event are still ignored?