[jQuery] iframe bug document.defaultView.getComputedStyle(elem,null)
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?