Modify ↓
Ticket #7148 (closed bug: fixed)
1.4.3rc1: Cannot get styles from disconnected nodes
| Reported by: | scott.gonzalez | Owned by: | john |
|---|---|---|---|
| Priority: | low | Milestone: | 1.4.3 |
| Component: | css | Version: | 1.4.2 |
| Keywords: | css disconnected nodes | Cc: | |
| Blocking: | Blocked by: |
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" )
Change History
comment:3 Changed 3 years ago by addyosmani
- need changed from Review to Patch
- Owner set to john
- Priority changed from undecided to low
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.
comment:4 follow-up: ↓ 5 Changed 3 years ago by john
- Status changed from new to closed
- Resolution set to fixed
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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.