Page - AddHandler - TestCases #12 - Cross Browers Event Stacking

$Id: test_12_page_addhandler.html,v 1.5 2005/10/23 07:57:32 james Exp $

The initial state is three capturing events, one for each level and on the bottom level, 'C' there is an event handler that will remove itself and add an event to B, That event will in turn remove itself and add an event to A, which will in turn remove itself and add an event to C.

Because we are capturing, but adding the events in the bubbling order, we are not going to get a chain reaction. If you click on C three times, the third time A will fire a1_onclick1, which will capture past B and up to C and c1_onclick1, which is the only time we will get a chain reaction.

Clicking on C 3 times should obtain the following order of events [click1] A,B,C,c1_onclick [click2] A,B,b1_onclick,C [click3] A,a1_onclick,B,C,c1_onclick

[A] [B] [C] .