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) :
"";

After I solved this, I get an error in my Status rapport (Please copy JQuery). I know this is a jQuery issue, and I also reported it a their website, but I thought it would be wise to also inform you guys about it.

Comments

heddn’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Marking this as won't fixed. 5.x is no longer supported/maintained. If this is still an issue in 7.x, then please re-open.