Bug Tracker

Modify

Ticket #3280 (closed bug: invalid)

Opened 5 years ago

Last modified 14 months ago

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

Description

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

$(function() {

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

});

Attached is an example file

Attachments

jquery.html Download (514 bytes) - added by jdsharp 5 years ago.

Change History

Changed 5 years ago by jdsharp

comment:1 Changed 5 years ago by flesler

  • Cc jdsharp, flesler added
  • need changed from Review to Test Case

Why would you set # to the background-color ? IE's reaction seems "logical" to me.

Can you provide a test case ?

comment:2 Changed 4 years ago by dmethvin

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

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

View

Add a comment

Modify Ticket

Action
as closed
Author


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

 
Note: See TracTickets for help on using tickets.