Forked from max-mapper/jQuery Live MobileSafari Click Bug
Created
October 28, 2011 22:01
-
-
Save psema4/1323699 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html> | |
<head> | |
<title> | |
MobileSafari Live Click Bug | |
</title> | |
<script src='http://code.jquery.com/jquery-git.js' type='text/javascript'></script> | |
<script src='http://media.lib.byu.edu/js/jquery/plugins/jquery.livequery-1.0.3.js' type='text/javascript'></script> | |
</head> | |
<body style='font-family: Helvetica;'> | |
<h1 class='livequery_h1' style='font-size: 50px; padding: 25px;'> | |
livequery h1 click | |
</h1> | |
<h1 class='live_h1' style='font-size: 50px; padding: 25px;'> | |
live h1 click | |
</h1> | |
<h1 class='h1_click' style='font-size: 50px; padding: 25px;'> | |
h1 click | |
</h1> | |
<p> | |
The 'live h1 click' doesn't fire in MobileSafari (iPhone) | |
</p> | |
<script type='text/javascript'> | |
//<![CDATA[ | |
$(document).ready(function() { | |
$('.livequery_h1').livequery('click', function() { | |
alert('livequery h1 clicked'); | |
}); | |
$('.live_h1').live('click', function() { | |
alert('live h1 clicked'); | |
}); | |
$('.h1_click').click(function() { | |
alert('h1 clicked'); | |
}); | |
}); | |
//]]> | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jquery ticket (closed with patchwelcome): http://bugs.jquery.com/ticket/5677