user15266715
user15266715

Reputation:

does the capturing and bubbling phases reaches the event.target node?

According to MDN modern browsers run two different phases when an event is fired:

According to WHATWG event.stopPropagation() prevents event from reaching any objects other than the current object.

According to MDN event.stopPropagation() prevents further propagation of the current event in the capturing and bubbling phases.

So i would like to know whether or not is correct to say that the capturing and bubbling phases reaches the event.target node.

Upvotes: 1

Views: 107

Answers (1)

user15266715
user15266715

Reputation:

No, the capturing and bubbling phases does not reaches the event.target node.

modern browsers run three different phases, the capturing phase, the target phase, and the bubbling phase.

https://dom.spec.whatwg.org/#dom-event-eventphase

https://github.com/mdn/content/issues/6657

Upvotes: 1

Related Questions