Skip to main content

Bug Tracker

Side navigation

#5325 closed bug (invalid)

Opened October 05, 2009 01:31PM UTC

Closed December 16, 2009 02:58AM UTC

Last modified April 23, 2017 11:32PM UTC

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@teknik.nl, twan@jimpo.nl
Blocked by: Blocking:
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;

Attachments (0)
Change History (3)

Changed October 05, 2009 10:40PM UTC by dmethvin comment:1

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

Changed December 16, 2009 02:58AM UTC by dmethvin comment:2

resolution: → invalid
status: newclosed

Changed April 23, 2017 11:32PM UTC by rjollos comment:3

cc: twan@teknik.nl;twan@jimpo.nltwan@teknik.nl, twan@jimpo.nl