javascript - What phase does stopPropagation effect? -


according quirksmode, modern browsers have capturing phase , bubbling phase. see here.

if use stoppropagation in event handler ( set either phase boolean argument ) how function?

will work both ways? if set capture mode, prevent bubbling phase. , vice-versa well.

here w3 reference ( stoppropagation ).

i'm troubleshooting event handler, , need understand how stoppropagation() functions.

stopping propagation during capture phase prevent further handlers running, including handlers registered bubbling phase.

the w3c documentation on event flow says (emphasis mine):

this specification defines 3 event phases: capture phase; target phase; , bubble phase. event objects complete these phases in specified order using partial propagation paths defined below. a phase must skipped if not supported, or if event object's propagation has been stopped. example, if event.bubbles attribute set false, bubble phase skipped, , if event.stoppropagation() has been called prior dispatch, phases must skipped.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -