I was thinking about forcing the onblur handler to start by invoking the element blur method. But then I thought that this would not work, because I remembered that calling submit on FormElement did not call its onsubmit method.
After some experiments, I found that blurring the call causes the onblur handler of the element to be called. This seems very inconsistent, not something that surprises me (it's JS after all). However, if there is a good reason for this, I would like to know. Is there a good reason to call a handler in the event of a blur but not send?
source
share