Bug Tracker

Modify

Ticket #749 (closed bug: fixed)

Opened 6 years ago

Last modified 14 months ago

parseColor function incorrectly parses 6-character-long color values

Reported by: puzzles@… Owned by: stefan
Priority: major Milestone:
Component: interface Version:
Keywords: color Cc:
Blocking: Blocked by:

Description

The jQuery.fx.parseColor function can't process 6-character-long color strings, because it always recognizes the string as a 3-character-long color value. A solution could be to check for the longer format first and then move on to the shorter one, or alternatively, the regular expression for the short format could be corrected.

Whichever the case, there's also a syntax error in the function. The 'color' parameter is used as 'c' in line 373.

Change History

comment:1 Changed 6 years ago by stefan

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

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.