Class Selector sometimes fails in IE6
|Reported by:||Pyro979||Owned by:|
|Keywords:||class, selector, ie6||Cc:|
The bug is as follows, a jQuery select such as $(".bodyDiv") will return a null object. Changing the class selector to an id selector such as $("#bodyDivId") eliminates the problem.
Solutions I've tried that have failed are: delaying execution by 400ms
Solutions I will try is using this fugly selector: $("[class*=className]") and trying to roll back to jQuery 1.3 (which is clearly suboptimal)
Once again, I know this will be hard to fix because it's difficult to reproduce (I could not on out IE6 installation) but if someone can try to figure out how this can happen (tracking how the null object is being returned is probably the most likely way to find the problem), and if not fixing it, maybe at least fallback to selecting it using the fugly selector above, I would be eternally grateful.
If there are any question or possible solutions I can try out I'm more than willing to help.