I vote for color() always returning the same value. The problem is that the code to clear that up is pretty bulky, by jQuery standards. If we re-wrote it to be smaller overall, it might be a candidate for inclusion. Otherwise, John might ask that we make it a plugin.
- Brian > On 9/18/06, Klaus Hartl <[EMAIL PROTECTED]> wrote: >> color() returns the computed style and in Firefox this is the RGB >> notation, no matter how you specified the color in the style sheet >> (name, hex, rgb). So this is not a bug. >> >> I'd write a RgbToHex function that transforms the Rgb value into Hex >> again or simply passes back the value if it is already hex... > > Thanks for clearing that up. I was hoping I could just use jQuery to > get a predictable value back from all browsers rather than resorting > to a custom function just to satisfy the Firefox edge case :) > > > On 9/18/06, Stamen Georgiev <[EMAIL PROTECTED]> wrote: >> I'm using this function (getCV) to do the trick: >> Hope it helps.... > > Thanks for sharing your code! > > > Does anyone else think this is something that jQuery should > standardize, or is it just not worth it? Or should it be a new > function .colorHex()? > > thanks, > Justin. > > _______________________________________________ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/