Skip to main content

Bug Tracker

Side navigation

#1694 closed bug (invalid)

Opened September 20, 2007 10:12AM UTC

Closed November 29, 2007 01:36AM UTC

Last modified March 15, 2012 07:41PM UTC

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;
Attachments (0)
Change History (2)

Changed September 20, 2007 01:41PM UTC by Robin comment:1

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

Changed November 29, 2007 01:36AM UTC by davidserduke comment:2

resolution: → invalid
status: newclosed

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