JavaScript for WordPress › Forums › Vanilla JavaScript › Event phases: bubblin', capturin' clarification › Reply To: Event phases: bubblin', capturin' clarification
August 5, 2016 at 5:25 pm
#10388
Zac Gordon
Keymaster
Since capturing happens before bubbling, setting #content to bubbling would have it display after the inner elements, since it bubbles from the inner elements out to the outer.
If #content is set to capturing then it will display first since it is capturing from the outer elements down into the inner.
Does that make more sense?