Skip to main content

Bug Tracker

Side navigation

#8783 closed bug (duplicate)

Opened April 06, 2011 07:06AM UTC

Closed April 25, 2011 10:12PM UTC

Last modified April 25, 2011 10:22PM UTC

1.5.2 getComputedStyle bug

Reported by: tasoss@gmail.com Owned by: rwaldron
Priority: blocker Milestone: 1.next
Component: support Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:
Description

Hello.By using 1.5.1 or 1.5.0 i don't get this error.

Particularly i get"

document.defaultView.getComputedStyle(div, null) is null

stack:

"@:1\\n((function (selector, context) {return new jQuery.fn.init(selector, context, rootjQuery);}))@http://deucalion/WebServeCRM/js/jquery/jquery-1.5.2.js:1286\\n([object HTMLDocument],[object Array])@http://deucalion/WebServeCRM/js/jquery/jquery-1.5.2.js:975\\n()@http://deucalion/WebServeCRM/js/jquery/jquery-1.5.2.js:414\\n([object Event])@http://deucalion/WebServeCRM/js/jquery/jquery-1.5.2.js:881\\n"

"

The div element at this time is

<div style="padding-left: 1px; width: 1px; margin-right: 0pt;"></div>

I suppose that the corrections that you made for bug #3333 broke this one in firefox.

Using firefox 4.0

Thanks!

Attachments (0)
Change History (6)

Changed April 06, 2011 12:13PM UTC by rwaldron comment:1

component: unfiledcss
owner: → rwaldron
priority: undecidedblocker
status: newassigned

Changed April 25, 2011 09:19AM UTC by anonymous comment:2

A quick fix, which worked for me:

change line 1283 from

if ( document.defaultView && document.defaultView.getComputedStyle ) {

into

if ( document.defaultView && document.defaultView.getComputedStyle && document.defaultView.getComputedStyle(div, null) ) {

Changed April 25, 2011 10:08PM UTC by anonymous comment:3

thanks for the comment anonymous :)

Changed April 25, 2011 10:12PM UTC by rwaldron comment:4

resolution: → duplicate
status: assignedclosed

Changed April 25, 2011 10:12PM UTC by rwaldron comment:5

Duplicate of #8763.

Changed April 25, 2011 10:22PM UTC by rwaldron comment:6

component: csssupport