[jQuery] Bug in .color() / Firefox
Hi All,
I'm building a new site using jQuery (obviously) and sIFR (2.0.2) for
replacement of Heading text. sIFR forces you to specify your text
color in the replaceElement function but since I have different style
sheets for different parts of the site I prefer not to hard code color
values into the JS, and that's where jQuery comes in ;)
The sIFR function call looks like this:
sIFR.replaceElement("#content h1", named({sFlashSrc:
"sifr/helveticacondensed.swf", sColor: $("#content h1").color(),
swMode: "transparent"}));
As you can see I'm using $("#content h1").color() to dynamically get
the color of the heading text, however in Firefox (1.5.0.7) I get a
different return value from .color() compared to other browsers.
alert($("#content h2").color());
In FF the alert displays "RGB(85, 85, 85)" whereas all other browsers
I have tested in return "#555555" (IE6, IE7 RC1, Opera 9.02).
Is this a bug in jQuery (or rather a special case that needs to be
handled for FF?) or is there some other way I can return the expect
hex code in all browsers? sIFR does expect the value passed to it to
be a hex code.
cheers,
Justin.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/