Test: iPhone click delegation

#03 : Attaching handler to closest node to the <body> tag.

Created in response to Peter-Paul Koch post about click event delegation bug on iPhone.

Author:
Miller Medeiros
Date:
2010/09/28
License:
WTFPL
Info:
read my blog post for more info.

Expected output:

This test should work on Safari Mobile.

Output:

Works on mobile Safari (iPhone 3GS iOS4).

Other tests:


delegate test #1

table

click table cell to test, it should blink.

1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20

delegate test #2

nested divs

click numbered divs to test, it should blink.

1
2
3
4
5

delegate test #3

nested divs

click numbered divs to test, it should blink.

highlighted divs have a child <A> tag.

1
2  
3
4  
5

delegate test #4

nested divs and anchors

click numbered divs to test, it should blink.

highlighted items are a <A> tag.

1
2
3
4
5