Skip to main content

Bug Tracker

Side navigation

#7405 closed bug (worksforme)

Opened November 04, 2010 10:58PM UTC

Closed November 04, 2010 11:10PM UTC

Last modified March 13, 2012 06:14PM UTC

jQuery.onReady fires before IE is ready to look at document.namespaces

Reported by: Owned by:
Priority: undecided Milestone: 1.5
Component: unfiled Version: 1.4.3
Keywords: Cc:
Blocked by: Blocking:

Problem comes up in Openlayers and is documented here:

Having an unloaded image triggers it:

<html><body><img src=''/>

<script src="jquery-1.4.3.min.js"></script><script>

$().ready(function(){ document.namespaces; });


Here's a patch but it may make things start up more slowly on IE of course:

diff jquery-1.4.3.js jquery-1.4.3.patched.js


Attachments (0)
Change History (3)

Changed November 04, 2010 11:10PM UTC by rwaldron comment:1

resolution: → worksforme
status: newclosed

Tested in IE 6, 7, 8

Additionally, you should know that document ready will always fire before images are completely loaded into the browser. document ready simply means that the DOM is parsed and ready to be manipulated.

Changed November 04, 2010 11:35PM UTC by comment:2

There is a browser error in vanilla IE 8 with the test case i provided, and there is no browser error in the jsfiddle version.

Changed November 04, 2010 11:48PM UTC by rwaldron comment:3

Right, but there is a fundamental difference - yours is using the now out-of-date 1.4.3 and mine is using the 1.4.4rc2. Which means: if it works in the most recent version of the library, then it is marked as "worksforme" - as in... we don't have to chase ghosts trying to find a bug that is already fixed.

Additionally, the file generated by jsFiddle is not much more then what your file was, it just happens to be in an iframe.

Lastly, we require jsFiddles for bug reports - says so on the filing page.