Merge pull request #468 from Adeel-Charolia/patch-3
Typo in "Bubbling and Capturing" Article
This commit is contained in:
commit
a8c678b73e
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ Let's see it in action:
|
||||||
|
|
||||||
The code sets click handlers on *every* element in the document to see which ones are working.
|
The code sets click handlers on *every* element in the document to see which ones are working.
|
||||||
|
|
||||||
If you click on `<td>`, then the sequence is:
|
If you click on `<p>`, then the sequence is:
|
||||||
|
|
||||||
1. `HTML` -> `BODY` -> `FORM` -> `DIV` -> `P` (capturing phase, the first listener), and then:
|
1. `HTML` -> `BODY` -> `FORM` -> `DIV` -> `P` (capturing phase, the first listener), and then:
|
||||||
2. `P` -> `DIV` -> `FORM` -> `BODY` -> `HTML` (bubbling phase, the second listener).
|
2. `P` -> `DIV` -> `FORM` -> `BODY` -> `HTML` (bubbling phase, the second listener).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue