#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: |
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 (2)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
As Robin noted, the wrong setting was used so this bug is invalid.
Note: See
TracTickets for help on using
tickets.
Shouldn't it be backgroundRepeat:'no-repeat'?