vanderlee/colorpicker — Issue #14: _parseHex() doesn't actually accept w3c-defined color names
Author: toolness
Created: 2012-01-20 05:09:51+00:00
State: open

Because the `_colors` hash is filled with CamelCased names and `_parseHex()` lowercases its input before looking it up in `_colors`, it never recognizes w3c-defined names.

In toolness/lovebomb.me@aff9a94756e288cbe821aea14fb2371875100742 I've patched the code by creating a separate hash called `_lowerColors` and looking up lowercased input in that. Let me know if you think this is a decent solution and I'll make a unit test for it and submit it as a pull request.