html5 - Where are ontouch() events allow to be? Why not on DIV's? -


validator.w3.org is throwing error:

attribute ontouchmove not allowed on element div @ point.

on following code:

<div id="somediv" ontouchmove="ontouchmove(event)" ontouchend="notouch(event)"></div> 

doctype is:

<!doctype html> 

what elements touch events allowed on?

keep out of dom

with jquery like:

$('#somediv').live('ontouchmove',function(e){     ontouchmove(e); });  $('#somediv').live('ontouchend',function(e){     notouch(e); }); 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -