Skip to content Skip to sidebar Skip to footer

Why Is The Event Listener For The Invalid Event Not Being Called When Using Event Bubbling?

When I try add an event listener to the invalid event of the document it is not called when I use the default event bubbling like this. document.addEventListener('invalid', functio

Solution 1:

According to the MDN reference, which is usually accurate and which appears to match reality in this case, invalid events do not bubble. They fire only on the input and the form.


Post a Comment for "Why Is The Event Listener For The Invalid Event Not Being Called When Using Event Bubbling?"