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
Post a Comment