event.addEventListener - TestCases #30

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

Quirks - (Will Not Work In IE or Opera)

Active Quirk

Click on the link below.

On Firefox and Safari the events fire in the order f1,f2,f4

For IE6 and Opera I get just f4.

		l_a1.addEventListener("click",f1,true);
		l_a1.addEventListener("click",f2,true);
		l_a1.onclick = f3;
		l_a1.onclick = f4;
[CLICK ME]

Cured Quirk

Click on the link below.

On Firefox the events fire in the order f4,f1,f2

For IE6, Opera and Safari I used to get f1,f2 but now that addEventListener deals with existing inline and assigned handlers (Trial tweak) I get f4,f1,f2.

		l_a2.onclick = f3;
		l_a2.onclick = f4;
		l_a2.addEventListener("click",f1,true);
		l_a2.addEventListener("click",f2,true);
[CLICK ME]

Active Quirk

Click on the link below.

On Firefox and Safari the events fire in the order f1,f4,f2

For IE6 and Opera I get F4.

		l_a3.addEventListener("click",f1,true);
		l_a3.onclick = f3;
		l_a3.onclick = f4;
		l_a3.addEventListener("click",f2,true);
[CLICK ME]

Active Quirk

Click on the link below.

On Firefox and Opera and Netscape and IE the events fire in the order f1,f2

Safari they fire in the order f2,f1

		l_a4.onclick = f1;
		l_a4.addEventListener("click",f2,true);
[CLICK ME]

Test

Click on the link below.

On Safari the events fire in the order f2,f1

Firefox and Netscape just f2 fires

        l_a5.onclick = f1;
        l_a5.onclick = null;
        l_a5.addEventListener("click",f2,true);
[CLICK ME]