Bug Tracker


Ticket #1694 (closed bug: invalid)

Opened 7 years ago

Last modified 2 years ago

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:
Blocking: Blocked by:


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

comment:1 Changed 7 years ago by Robin

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

comment:2 Changed 6 years ago by davidserduke

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

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

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


Add a comment

Modify Ticket

as closed

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

Note: See TracTickets for help on using tickets.