block by pbogden f359cd2d9b754db5d3ba

event

Full Screen

Event bubbling & capturing demo

  1. SVG elements are not nested – they don’t bubble to each other. Topmost element is the target.
  2. Blue SVG rect captures the event with d3.event.stopPropagation();
  3. Nested DIV elements bubble to each other up the DOM tree.
  4. Non-nested DIV elements don’t bubble to each other.

index.html