Quirksmode explains that modern browsers have a capturing phase as well as a bubbling phase, which you can read more about here.
If I decide to implement stopPropagation in my event handler with a Boolean argument specifying the phase, how will it behave?
Will it work in both phases? In other words, if I set it for the capture mode, will it also prevent the bubbling phase? And vice versa?
You can find more information in the W3 reference for stopPropagation.
I'm currently troubleshooting an event handler and need a clear understanding of how stopPropagation()
actually works.