Propagation and Delegation
Trace capture and bubble phases, delegate dynamic controls, and avoid unnecessary propagation blocking.
Lesson introduction
Most events travel through a path. Delegation places one listener on a stable ancestor and identifies the relevant descendant from the event target.
Where this fits
This lesson builds one part of the path from language fundamentals to complete browser applications.
What you will build
Build a delegated task list whose future buttons work without adding a listener to each row.
You will first study the underlying rule, then trace worked code, repair a mistake, and create an independent solution.