Created
October 21, 2010 15:17
-
-
Save xulapp/638656 to your computer and use it in GitHub Desktop.
Sizzle bug
This file contains hidden or 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> | |
| <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