Modify ↓
Ticket #7005 (closed bug: invalid)
IE Set Style (Empty Width)
| Reported by: | alidehghan | Owned by: | |
|---|---|---|---|
| Priority: | Milestone: | 1.4.3 | |
| Component: | css | Version: | 1.4.2 |
| Keywords: | IE,Style,Width | Cc: | |
| Blocking: | Blocked by: |
Description
In line 4617, when the value is passed to set is empty, throw an exception. This is because in IE can't set a value such as "px" in "width" property. this is resolved with following code:
if ( set && value!='px' ) {
style[ name ] = value;
}
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.

Please open with a test case. If you are saying that $("#id").css("width", "px") is throwing an error, then yes it is and it's due to bad input being passed to jQuery. A test case will make things clear.