You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 2-ui/2-events/02-bubbling-and-capturing/article.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -181,7 +181,7 @@ The code sets click handlers on *every* element in the document to see which one
181
181
If you click on `<p>`, then the sequence is:
182
182
183
183
1.`HTML` -> `BODY` -> `FORM` -> `DIV` (capturing phase, the first listener):
184
-
2.`P` (target phrase, triggers two times, as we've set two listeners: capturing and bubbling)
184
+
2.`P` (target phase, triggers two times, as we've set two listeners: capturing and bubbling)
185
185
3.`DIV` -> `FORM` -> `BODY` -> `HTML` (bubbling phase, the second listener).
186
186
187
187
There's a property `event.eventPhase` that tells us the number of the phase on which the event was caught. But it's rarely used, because we usually know it in the handler.
0 commit comments