Modify ↓
Ticket #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: | ||
| Blocking: | Blocked by: |
Description
Applying the below code:
$('<div>Reward:<br />' + sym + item.reward + '</div>')
.css({
fontSize: '80%',
width: '33%',
styleFloat: 'left',
backgroundColor: '#ff6',
backgroundRepeat: 'none',
textAlign: 'center',
display: 'none'
})
.addClass('reward')
.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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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