There is code on I do not own that has placed a jQuery delegated event listener on a click event (to collect and fire Omniture data).
$("html").on('click', 'a', function() { /* Stuff */ });
I have written code that also needs delegated events, so I can execute some program behavior on a click event, but I also want the code above to fire as well.
$(".module").on('click', 'a.yes', function(event) { /* My stuff */});
When I put my code in, I can clearly see my event firing, but not the other.
This Stack Overflow answer states that in modern browsers, the event bubbles up. If the event hits an event listener on the way up, the handler at that level fires, but the event continues to bubble up. https://stackoverflow.com/a/4616720/432089
I didn't get any console errors, and maybe the other code isn't configured correctly on my page. Can someone confirm that the event will bubble all the way to the top, all the while activating any matching handler along the way? (provided no event handler is stopping the propagation with event.stopPropagation or return false)
I just want to make sure I fully understand event bubbling, so I know where to begin debugging. (i.e. my code versus code related to Omniture)