Bug Tracker

Modify

Ticket #5325 (closed bug: invalid)

Opened 5 years ago

Last modified 4 years ago

css property background lets jquery hang in ie&

Reported by: twan_van_der_poel Owned by:
Priority: minor Milestone: 1.3.2
Component: core Version: 1.3.2
Keywords: css selector Cc: twan@…;twan@…
Blocking: Blocked by:

Description

When a css background property is set with a list like;

$(elem).css({ 'background': 'red' })

and it's a textual value, jQuery hangs if the value isnt a valid background name (on ie7).

I noticed it when debugging to;

$(jquery_prefix+'#'+rowId+' > div:first').css({

'background': 'puprle', 'width': '22px', 'height': '28px', 'margin-top': '-8px', 'background-repeat': 'repeat'

})

Notice the purple isnt spelled correctly, IE7 raises a error message;

Line: 1061, invalid argument.

Which comes down to;

if ( set )

elem[ name ] = value;

Change History

comment:1 Changed 5 years ago by dmethvin

You've passed in an invalid argument. What should jQuery do? If it masks the error it will be harder to find.

comment:2 Changed 4 years ago by dmethvin

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

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.