Update jQuery requirements in resources/startup.js per jQuery 1.7.x release
authorTimo Tijhof <ttijhof@wikimedia.org>
Sat, 14 Apr 2012 01:53:25 +0000 (03:53 +0200)
committerTimo Tijhof <ttijhof@wikimedia.org>
Sat, 14 Apr 2012 01:53:25 +0000 (03:53 +0200)
- Check http://jquery.com/:
 * IE 6.0+, FF 3.6+, Safari 5.0+, Opera, Chrome

- It does not include an Opera number, but they are only
  actively testing for Opera 11.x versions. Also Operate
  is quite bold in their upgrade requirement in-browser,
  so that shouldn't be much of an issue.

  I've also updated
  https://www.mediawiki.org/wiki/Compatibility#Browser

  Note that this means that we no longer support enhanced functionality in
  some browsers that are currently still above the 0.1% wmf-traffic threshold
  we keep. I've therefor split [[mw:Compatibility#Browser]] in a "Grade A"
  and "Grade B" section. One that we support for all functionality, and the
  others we support because of traffic, but not "everything" will work.
  Right now the only notable difference will be jQuery and depending modules.

  In reality Grade B will still get the same data served as Grade A, since
  startup.js only enforces IE6 right now (bug 35906)

  Auto-updating Chrome will not need a check, and Chrome < 1.0 is very minor,
  and will probably even work just fine.

Change-Id: If60de580fc892ced1a43a0bc4958988d98d087d9

resources/startup.js

index 52c320c..7951af0 100644 (file)
  * generally useful beyond startup
  *
  * jQuery has minimum requirements of:
- * * Firefox 2.0+
- * * Internet Explorer 6+
- * * Safari 3+
- * * Opera 9+
- * * Chrome 1+
+ * * Internet Explorer 6.0+
+ * * Firefox 3.6+
+ * * Safari 5.0+
+ * * Opera 11+
+ * * Chrome
  */
-var isCompatible = function() {
-       // IE < 6
+function isCompatible() {
+       // IE < 6.0
        if ( navigator.appVersion.indexOf( 'MSIE' ) !== -1
                && parseFloat( navigator.appVersion.split( 'MSIE' )[1] ) < 6 )
        {
                return false;
        }
-       // TODO: Firefox < 2
-       // TODO: Safari < 3
-       // TODO: Opera < 9
-       // TODO: Chrome < 1
+       // @todo FIXME: Firefox < 3.6
+       // @todo FIXME: Safari < 5.0
+       // @todo FIXME: Opera < 11
        return true;
-};
+}
 /**
  * The startUp() function will be generated and added here (at the bottom)
  */