Skilip, Thank you for this posting! We ran into the exact problem and your fix killed the bug in minutes. I do hope it makes it into the official jQuery.js release.
Bob On Oct 11, 3:41 am, Skilip <[EMAIL PROTECTED]> wrote: > Hi, I found a bug with jQuery version 1.2. It concerns the following > error generated by Firebug in Firefox when a iframe is present in a > page. > > document.defaultView.getComputedStyle(elem, null) has no properties > > I solved it by replacing the following code with the code pasted > underneath. > > old: (line 729) > ret = prop == "display" && > swap[stack.length-1] != null ? > "none" : > > document.defaultView.getComputedStyle(elem,null).getPropertyValue(prop) > || ""; > > new: > ret = prop == "display" && > swap[stack.length-1] != null ? > "none" : > > (document.defaultView.getComputedStyle(elem,null)) ? > > document.defaultView.getComputedStyle(elem,null).getPropertyValue(prop) : > ""; > > Can I report this bug somewhere @ jQuery's website?