Created
January 8, 2011 00:17
-
-
Save joelpittet/770360 to your computer and use it in GitHub Desktop.
RaphaelJS - IE Bug with jQuery
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> | |
| <title>RaphaelJS - IE Bug with jQuery</title> | |
| <!-- | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script> | |
| <script src="http://github.com/DmitryBaranovskiy/raphael/raw/master/raphael-min.js" type="text/javascript"></script> | |
| --> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js" type="text/javascript"></script> | |
| <script src="https://github.com/DmitryBaranovskiy/raphael/raw/master/raphael.js" type="text/javascript"></script> | |
| <!-- | |
| <script src="raphael-1.5.2.js" type="text/javascript"></script>--> | |
| <script type="text/javascript"> | |
| (function($) { | |
| $(function() { | |
| var div = $("<div>").prependTo("body"); | |
| var paper = Raphael(div[0], 400, 400); | |
| find_checkboxes(); | |
| var image = paper.image(null, 0, 0, 400, 400); | |
| find_checkboxes(); | |
| function find_checkboxes() { | |
| //try { | |
| // Count checkboxes and append to results | |
| $('#results').append("<br/>Checkboxes: " + $("body").has(":checkbox").length); | |
| // } catch (e) { | |
| // // Build Error Message | |
| // var message = ""; | |
| // for (var key in e) message += "<br/>" + key + " => " + e[key].toString(); | |
| // | |
| // // Display error message | |
| // $('#results').append("Error finding checkboxes.\n" + message); | |
| // } | |
| } | |
| }); | |
| })(jQuery); | |
| </script> | |
| </head> | |
| <body> | |
| Should display "Checkboxes: 0" twice. | |
| <div id="results"></div> | |
| <p>IE8: Reports error in jquery 1.4.4 uncompressed line #3608<br> <code><pre>checkbox: function( elem ) { | |
| return "checkbox" === elem.type; | |
| },</pre></code></p> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment