views:

12

answers:

1

I have been looking for a list of HTML elements that are valid targets for touch events on the iPad but haven't found it in the online Apple documentation for handling touch events. I know that a span element can be turned into a touch target by adding a dummy onclick handler, but that trick doesn't work for all elements.

I would be very grateful for a link to that documentation. Thanks

A: 

I assume you refer to this page? The workaround deals with migrating elements that have mouseover handlers but no click handlers. The workaround is for a very specific case then.

AFAIK, all the elements supporting onmouseover supports onclick. I believe that elements that are "visible" should support onclick by specification, but there may be e.g. browser bugs or implementation incompleteness preventing some elements from responding to this event, or preventing it from being clickable.

I suppose the only documentation would be the specification, but then again, Safari may be implementing it differently.

Krumelur
I appreciate the broad help the HTML5 spec at W3C offers, but I am indeed looking for documentation specifically relating to the *touch* events iPad Safari. I am trying to trap the touchstart event (and the other touch events, touchmove, touchcancel, touchend) for a text input element on a web app running on the iPad.
Tim