All opinions expressed are those of the authors and not necessarily those of OSNews.com, our sponsors, or our affiliates.
published by Adam S on 2009-07-09 13:27:00 in the "Rant" category
This code (extracted from a javascript file) works in every major browser except IE (including IE8):
$('a[rel*=fancybox]').fancybox({ 'frameWidth' : 500, 'frameHeight' : 465, 'hideOnContentClick' : false, 'centerOnScroll' : true, });
This is the fix:
$('a[rel*=fancybox]').fancybox({ 'frameWidth' : 500, 'frameHeight' : 465, 'hideOnContentClick' : false, 'centerOnScroll' : true });
See the difference? Yeah, neither did I. The difference is the last comma in the argument list.
That’s 3 consecutive major versions of IE that have been absolutely crap. Â Why anyone continues to use IE is beyond me. Â IE: sucking hard since version 5.

