Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 79FCB1021F for ; Wed, 19 Feb 2014 10:37:17 +0000 (UTC) Received: (qmail 30220 invoked by uid 500); 19 Feb 2014 10:37:16 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 29587 invoked by uid 500); 19 Feb 2014 10:37:15 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 29545 invoked by uid 99); 19 Feb 2014 10:37:13 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Feb 2014 10:37:13 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 5C85F8C306B; Wed, 19 Feb 2014 10:37:13 +0000 (UTC) From: MikaelSoderstrom To: dev@couchdb.apache.org Reply-To: dev@couchdb.apache.org References: In-Reply-To: Subject: [GitHub] couchdb pull request: Add polyfill for IE8 Array.indexOf Content-Type: text/plain Message-Id: <20140219103713.5C85F8C306B@tyr.zones.apache.org> Date: Wed, 19 Feb 2014 10:37:13 +0000 (UTC) Github user MikaelSoderstrom commented on the pull request: https://github.com/apache/couchdb/pull/153#issuecomment-35485395 One of the benefits with jQuery is that it just works in all older and modern browsers (if you are using 1.9.x that is). The drawback is that you will not the same performance as the built-in functions. You can test $.inArray() and Array.prototype.indexOf here: http://jsperf.com/in-array-vs-inarray-vs-indexof If you can use the native methods, you should do that. And if we take a look at the ES5 support in browsers, we can see that IE 8 is the last version of IE that doesn't have full support for this (IE 9 supports everything except strict mode, which it will just ignore): http://kangax.github.io/es5-compat-table/ Since IE 8 is the latest version that can be installed on Windows XP, and Microsoft is not going to support Windows XP after april this year, I guess CouchDB shouldn't have to either. Is it really that important to support a browser that not even Microsoft is going to support in 1½ month? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. To do so, please top-post your response. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---