Skip to main content

Bug Tracker

Side navigation

#7148 closed bug (fixed)

Opened October 11, 2010 03:14PM UTC

Closed October 11, 2010 08:29PM UTC

Last modified December 29, 2011 12:21PM UTC

1.4.3rc1: Cannot get styles from disconnected nodes

Reported by: scottgonzalez Owned by: john
Priority: low Milestone: 1.4.3
Component: css Version: 1.4.2
Keywords: css disconnected nodes Cc:
Blocked by: Blocking:
Description

.css() now returns an empty string when trying to get style properties from elements that are not part of the page.

$( "<div>" ).css( "left", "20%" ).css( "left" )

demo: http://jsbin.com/iluhi4/edit

Attachments (0)
Change History (5)

Changed October 11, 2010 03:32PM UTC by addyosmani comment:1

keywords: → css disconnected nodes

Scott, did you notice this happening in all major browsers or just one in particular? If the latter, could you elaborate on which one?.

Currently testing this on FF 3.6.10/OSX and it seems to be working fine.

Changed October 11, 2010 03:46PM UTC by miketaylr comment:2

Not working in Opera 10.62/Mac.

Changed October 11, 2010 03:51PM UTC by addyosmani comment:3

need: ReviewPatch
owner: → john
priority: undecidedlow

Issue confirmed as not working in:

Opera 10.62

Chrome 6.04

Safari 5.02

Currently appears to be working fine in FireFox 3.6.10/OSX.

Flagging for review/patch if possible.

Changed October 11, 2010 08:29PM UTC by john comment:4

resolution: → fixed
status: newclosed

Changed December 29, 2011 12:21PM UTC by caii comment:5

Replying to [comment:4 john]:

Landed http://github.com/jquery/jquery/pull/47

in IE<9 STILL BUG