Modify ↓
Ticket #6196 (closed bug: invalid)
IE error in curCSS on pixel recalculation
| Reported by: | Max_B | Owned by: | Max_B |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.4.3 |
| Component: | css | Version: | 1.4.2 |
| Keywords: | curCSS IE rnumpx | Cc: | |
| Blocking: | Blocked by: |
Description
The code block to recalculate pixel values raise an error on IE(8), when the current property is margin with a composite value like "5% auto auto 20px".
Line 4724 of jquery-1.4.2.src.
As I'm not sure of the best workaround, I have added a check on the property like this: line 4718: if ( !rnumpx.test( ret ) && rnum.test( ret ) && camelCase != 'margin') {
Change History
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.

The problem is because the value is from a shorthand property. Not sure how to handle this either; perhaps return a string for any property with embedded spaces?