Can anybody confirm if this is a bug? It looks like it to me!

Here's the code...

(function($) {
        $.fn.priceTable = function () {
                return this.each(function() {
                        $("thead td:first", this).addClass('js-ptd');
                        $("thead th:last", this).addClass('js-rtd');
                        $("tbody th", this).addClass('js-ltd');
                        $("tbody tr:first td, tbody tr:first 
th",this).addClass('js-ttd');
                        $("tbody tr", this).each(function() {
                                $("td:last", this).addClass('js-rtd');
                                $("td:odd", this).addClass('js-bgtd');
                        });
                        $("tbody tr:last td, tbody tr:last 
th",this).addClass('js-btd');

                });

        };
})(jQuery);

$(function() {
        $("table.prices").priceTable();
});

On Jul 16, 1:37 pm, Will Kelly <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Not sure if this is a bug or not, but Firefox seems not to properly
> apply a series of class names.
>
> Here's the examplehttp://www.logicbox.net/jquery/pricetable/short-css.html
>
> with a 'console.log' to fix the firefox 
> rendering.http://www.logicbox.net/jquery/pricetable/short-css-firefox-fix.html
>
> Thinking that this might be to with specificity I did a version with
> more verbose 
> CSS.http://www.logicbox.net/jquery/pricetable/verbose-css.htmlhttp://www.logicbox.net/jquery/pricetable/verbose-css-firefox-fix.html
>
> Again the same problem crops up in Firefox. They all work fine in
> IE6/7, Safari 3beta etc.
>
> Very odd, any ideas? This one's been annoying me for a while now!
>
> Thanks,
> Will

Reply via email to