Skip to content

Instantly share code, notes, and snippets.

@xulapp
Created October 21, 2010 15:17
Show Gist options
  • Select an option

  • Save xulapp/638656 to your computer and use it in GitHub Desktop.

Select an option

Save xulapp/638656 to your computer and use it in GitHub Desktop.
Sizzle bug
<!doctype html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.js"></script>
<script>
$(function() {
try {
$('form').find(':text').val('ok');
} catch(e) {
$(':text').val('ng');
setTimeout(function() { throw e; }, 0);
}
});
</script>
</head>
<body>
<form><p><input name="id" /></p></form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment