Bug Tracker

Modify

Ticket #7005 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

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

comment:1 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.