Bug 159763 - click events not fired depending on DOM changes?
Summary: click events not fired depending on DOM changes?
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: Safari 9
Hardware: iPhone / iPad iOS 9.3
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-14 07:45 PDT by Rick Byers
Modified: 2016-07-14 20:59 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Byers 2016-07-14 07:45:12 PDT
According to https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW6 I should see click events whenever tapping inside an element with a click listener.  I swear this used to work reliably but now I'm seeing something I'm having trouble explaining:

Repro:
- Visit http://rbyers.net/eventTest.html
- Ensure only ' mouse' is enabled in the configuration
- Tap a few times - in the log or on the squares on the right
- Most taps generate mousemove/mousedown/mouseup/click events
- Now enable 'touch' from the list of events to monitor and tap again
- Now you only get the 'mousemove' events - no down/up/click.  This occurs no matter where you tap (even outside the log whose DOM content is changing).

Simpler repro that demonstrates something similar:
 - https://output.jsbin.com/nirihe
 - tap in any of the different clickable areas above the log box
 - notice you consistently get 'click' events
 - now tap inside the log box
 - get only touchstart/mousedown - even though you still see the tap highlight showing that the clickable target is being activated.

I don't remember seeing this before - any chance something changed in iOS 9?  I'll install iOS 10 beta to try that.