Skip to main content

Bug Tracker

Side navigation

#11180 closed bug (invalid)

Opened January 16, 2012 08:54PM UTC

Closed January 16, 2012 09:06PM UTC

Last modified March 14, 2012 10:00AM UTC

document.defaultview.getcomputedstyle null

Reported by: Mike Helmick <mikehelmick@me.com> Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.6.4
Keywords: Cc:
Blocked by: Blocking:
Description

Related to http://bugs.jquery.com/ticket/8763, I believe.

SWFUpload is trying to load in a page that is loaded in through an iframe that is hidden in a div, and then shown.

The div is hidden, src (that includes swfupload) is added to iframe, iframe is appended to div, then div is shown.

SWFUpload throws:

line 274 - swfupload.js

document.defaultView.getComputedStyle(targetElement, null) is null
[Break On This Error] wrapperType = (targetElement.curre...play")) !== "block" ? "span" : "div"; 

SWFUpload v2.2

I know there are newer versions out of SWFUpload, but yeah; this needs looked at.

Attachments (0)
Change History (1)

Changed January 16, 2012 09:06PM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

It would be best to start with a test case that reproduces the problem, using the latest plugin, and report it to the maintainers of swfupload.js since the error occurs in that code.