When dealing with propagation, if you set a <div> element to true, meaning it will use capturing, but set a child element, say <p>, to false so it uses bubbling, which event will take place first? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

When dealing with propagation, if you set a <div> element to true, meaning it will use capturing, but set a child element, say <p>, to false so it uses bubbling, which event will take place first?

8th Jul 2016, 1:40 AM
Sean Medlin
Sean Medlin - avatar
2 Answers
+ 2
Capturing.
8th Jul 2016, 12:49 PM
ZinC
ZinC - avatar
+ 1
it's not important that it's capturing or bubbling important is that div is container and as hirarcial it will be implemented first
9th Jul 2016, 2:31 AM
Manish Sachdeva