Bug Tracker

Opened 15 years ago

Closed 15 years ago

Last modified 11 years ago

#1694 closed bug (invalid)

Applying backgroundRepeat in .css() causes error in IE7

Reported by: digitalspaghetti Owned by:
Priority: major Milestone: 1.2.2
Component: core Version: 1.2.1
Keywords: Cc:
Blocked by: Blocking:


Applying the below code:

$('<div>Reward:<br />' + sym + item.reward + '</div>')
fontSize: '80%',
width: '33%',
styleFloat: 'left',
backgroundColor: '#ff6',
backgroundRepeat: 'none',
textAlign: 'center',
display: 'none'
.appendTo('#question-' + item.id);

This causes an error in IE7, line 906: Error: Could not get the backgroundRepeat Property. Invalid argument. This error actually appears to be in the .attr() function in jQuery.js:

if ( value != undefined ) elem[name] = value;

Change History (2)

comment:1 Changed 15 years ago by Robin

Shouldn't it be backgroundRepeat:'no-repeat'?

comment:2 Changed 15 years ago by davidserduke

Resolution: invalid
Status: newclosed

As Robin noted, the wrong setting was used so this bug is invalid.

Note: See TracTickets for help on using tickets.