Here is my problem : I want to insert an image in the dom, just to check its dimension, and then remove it. I'm doing this on line 47 and following of my jQuery.taquin-1.0.js file. But in certain circumstances I can't understand, it fails.
The problem is on Firefox 3.6.14 and IE 8. Haven't check other browsers.
I have attached to this post the app. (see jsFiddle link below) It's a game of fifteen (in french : taquin). To reproduce the bug, launch the sample (index.htm), just type the path of a local image, press "Start" once (the board game should appear), then "Reset", and press "Reset" a second time to trigger the bug.
I have been able to reduce the problem to the line 5558 of the jquery-1.5.1.js file that is included with the app (I haven't change anything to it). If you breakpoint this line, you will see that when the bug occurs, the ret array is shown to be empty, but if you look carefully in the firebug spy window, you will see that there are "1" inside of it (one for each time the reset button failed). This is the very strange behavior, considering on line 5558, the ret variable is initialize as an empty array.