Side navigation
#1779 closed bug (fixed)
Opened October 06, 2007 08:34PM UTC
Closed October 12, 2007 09:47AM UTC
javascript error in FF when running an animation in a hidden iframe
Reported by: | davidserduke | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.2.2 |
Component: | core | Version: | 1.2.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When animation code is placed in an iframe that is hidden, there is the following javascript error.
document.defaultView.getComputedStyle(elem,null).getPropertyValue has no properties jquery.js Line: 731
Interestingly enough, while this might seem like an obscure bug, this is exactly the code we are using in the wiki for demos. Attached is an example of the bug.
I think this patch might fix the problem. It does fix the test case. As you can see, all it does is check to make sure the getComputedStyle has a value before trying to call its getPropertyValue() function.