[jQuery] Browser compatibility

[jQuery] Browser compatibility


Is there a list of browsers that are intended to be supported/unsupported
anywhere?
At the moment, Internet Explorer 5.0 is throwing errors because it doesn't
support Array.push. That's easily fixed:
// Substitute Array.push()
if(!Array.prototype.push) {
    Array.prototype.push = function() {
        for (var i = 0; i < arguments.length; i++) {
            this[this.length] = arguments[i];
        }
        return this[this.length-1];
    };
}
However, I think it's a general problem that needs solving, as it's much
better for jQuery to _fail immediately_ than to try to do things and break,
or to only do some of them.
What I'm thinking as a general solution is to have jQuery do a series of
checks to determine whether the browser supports the level of functionality
that it requires at the beginning, so at the top of jQuery, you'd have
something like:
jquerySupported = false;
if (Array.prototype.push && Array.prototype.pop && moreChecksHere) {
    jquerySupported = true;
    // Rest of jQuery here
}
Then users can simply surround all of their jQuery-using code with:
if (jquerySupported) {
    // User code here
}
That way, Internet Explorer 5.0 (or any other browser that doesn't support
what is needed) wouldn't attempt to execute jQuery or any code that uses it,
and the pages using it would fall-back as if Javascript wasn't available at
all.
--
Jim
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/