Skip to main content

Bug Tracker

Side navigation

#3280 closed bug (invalid)

Opened August 22, 2008 02:46PM UTC

Closed January 20, 2009 03:53AM UTC

Last modified March 15, 2012 05:41PM UTC

.css('background-color', '#') Throws JS Error in IE

Reported by: jdsharp Owned by:
Priority: minor Milestone: 1.3
Component: core Version: 1.2.6
Keywords: Cc: jdsharp, flesler
Blocked by: Blocking:
Description

The following throws a JS error in IE saying "invalid property value"

$(function() {

$('body').css('background-color', '#');

});

Attached is an example file

Attachments (1)
  • jquery.html (0.5 KB) - added by jdsharp August 22, 2008 02:46PM UTC.
Change History (2)

Changed August 22, 2008 05:35PM UTC by flesler comment:1

cc: → jdsharp, flesler
need: ReviewTest Case

Why would you set # to the background-color ?

IE's reaction seems "logical" to me.

Can you provide a test case ?

Changed January 20, 2009 03:53AM UTC by dmethvin comment:2

resolution: → invalid
status: newclosed