Bug Tracker

Opened 13 years ago

Closed 13 years ago

Last modified 6 years ago

#5325 closed bug (invalid)

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: [email protected]…, [email protected]
Blocked by: Blocking:


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 (3)

comment:1 Changed 13 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 13 years ago by dmethvin

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.