Opened 12 years ago
Closed 12 years ago
#8085 closed defect (wontfix)
dojo.addOnLoad inconsistency between IE6 and FF3
Reported by: | Les | Owned by: | anonymous |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | Core | Version: | 1.2.1 |
Keywords: | addOnLoad | Cc: | James Burke |
Blocked By: | Blocking: |
Description
Steps to recreate:
- Enter the following in Firebug and run:
dojo.require("dojox.xml.DomParser");
- Now enter:
dojo.require("dojox.xml.DomParser"); dojo.addOnLoad(function() { alert("inside"); }); alert("outside");
Repeat the same steps in IE6. I used the DebugBar? console. You will see that in IE alert will first display 'outside' and then 'inside'. The order is reversed. Why this inconsistency? I tried release 1.1.1 and 1.2.1
Change History (1)
comment:1 Changed 12 years ago by
Cc: | James Burke added |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
See the same thread...but the bottom line is that there is a setTimeout within dojo._callLoaded, there to workaround specific browsers (such as IE) that have synchronization issues WRT to conflicting loading resources and causing a possible hang.
There is a note within that code that asks if all browsers should be routed through the timeout; that's a separate issue, though.