jQuery 1.5.1 发布,全面支持IE9 修复大量bug


Posted in Javascript onFebruary 26, 2011

我们非常感谢如下的贡献者(Contributors),他们为此次的发布提供了很多补丁(Patches):antonkovalyov, csnover, danheberden, davidmurdoch, dmethvin, gnarf37, jaubourg, jeresig, jitter, jrburke, lrbabe, mathiasbynens, rwldrn, SlexAxton, and voxwerk.

我们也特别感谢我们的BUG分类小组,在他们的帮助下一些主要的BUG在本次版本更新中被修正。

下载

和通常一样,我们提供两份jQuery的拷贝。一个压缩版本一个非压缩版本(分别为了调试和阅读)。

jQuery Minified (29kb Gzipped)

jQuery Regular (212kb) jquery下载地址

你可以在自己的网站内引用上述链接地址,从而获得更快的下载速度。

当然,你也可以引用微软或者GoogleCDN加速服务器上的jQuery,他们分别是:

Microsoft CDN: http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.1.min.js

Google CDN: https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js

1.6路线图讨论会议(Roadmap Meeting

jQuery的核心开发团队正在讨论jQuery1.6中将要进行的改变。目前我们计划在四月下旬或者五月上旬发布jQuery1.6,我们会在37号中午讨论这些将要添加到新版本中的提议(美国东部时间)。

你可以通过这个表格37号的会议之前提交你的建议。

jQuery 1.5.1更新日志

jQuery 1.5.1 发布,全面支持IE9 修复大量bug

API 文档:jQuery 1.5.1 API 文档

因为这是一次修正BUG的小版本更新,所以没有增加新的特性。唯一的变化如下:

jQuery 目前把 IE9作为一个重要的浏览器来支持。所有已知的BUG都已经得到修复或者已经提交给IE的开发团队以便在最终版本中得到解决。(All known bugs have been fixed and/or been reported to the IE team for resolution in the final release.

三个新的参数被添加到jQuery.ajax()

isLocal: 允许当前的执行环境被识别为“local(例如文件系统)jQuery默认情况下是不会识别这种环境。如下的协议被识别为本地环境:file, *-entension, widget. 如果需要修改isLocal,推荐使用$.ajaxSetup()方法来修改。

mimeType: 可以用来覆盖XHRmime type.

xhrFields: 一个可以添加到原生XHR对象上的键值对(fieldName-fieldValue)。比如,你可以在跨域调用中设置withCredentialstrue

修正的BUG列表

本次版本修正了如下BUG

  • #2551 Make sure .val() works after form.reset() in IE
  • #4537 Make sure .clone(true) correctly clones namespaced events
  • #4966 Don't add “px” to unit-less properties when animating them
  • #6774 Make sure we only access parentNode if it's available. Fixes an issue where after an option tag has been detached, an elem.parentNode error would be thrown.
  • #6911Prevent action on disabled elements, both triggering and bound via .live()
  • #7531 Fix again for IE9RC. Enhances ajaxSetup so that it can take an optional target option, in which case target will be updated instead of ajaxSettings. That way, fields that shouldn't be deep extended can be listed and dealt with in one place. jQuery.ajax now makes use of ajaxSetup with target to create its internal settings object
  • #7568 Follow-up fix for #5862. Objects with a length property weren't serialized properly by jQuery.param
  • #7653 Changes regexp to detect local protocol so that it will accept any protocol finishing by -extension
  • #7668 Sizzle and jQuery QUnit tests are out of sync
  • #7912 This change makes .cur() more .cssHooks friendly. .cur() now returns the unmodified value by .css() if it isn't a number, number-alike or a value that needs a fallback to 0.
  • #7922 Fixed an issue where live(‘click') doesn't fire when live(‘submit') is bound first in IE
  • #7945 Make jQuery.param() serialize plain objects with a property named jquery correctly
  • #8033 jQuery 1.4.4+ fails to load on pages with old Prototype (<= 1.5) or Current Prototype + Scriptaculous in IE
  • #8039 Selectors with HTML5 input types not work in IE6/7
  • #8052 Update jQuery.support.noCloneEvent test to function properly in IE9
  • #8095 Properly handles the case where browser cache needs to be bypassed while server-side logic still delivers proper 304 responses. Unit test added
  • #8098 Use the fast document.head when available
  • #8099 Always restore to correct display value based on element's expected default display
  • #8107 Fix argument handling for $.ajax for multiple method signatues and add test case
  • #8108Temporary fix for jQuery metadata being exposed on plain JS objects when serializing with JSON.stringify to avoid compatibility-breaking changes. A proper fix for this will be landed in 1.6
  • #8115 Renames all references to jXHR with jqXHR in the code (like was done in the doc)
  • #8123 The default for .clone() is to not clone any events
  • #8125 Status is set to 200 for requests with status 0 when location.protocol if “file:”. Added test/localfile.html to control it works
  • #8129 Fix cloning multiple selected options in IE8
  • #8135 Makes sure any exception thrown by Firefox when trying to access an XMLHttpRequest property when a network error occured is caught and notified as an error. Added test/networkerror.html to test the behavior
  • #8138 Access to document.location is made only once at load time and if it fails (throwing an exception in IE when document.domain is already set), we use the href of an A element instead
  • #8145 Added readyWait tests
  • #8146 introducing the xhrFields option with is a map of fieldName/fieldValue to set on the native xhr. Can be used to set withCredentials to true for cross-domain requests if needed
  • #8152 applying the same special cases for protocol “chrome-extension:” as were for “file:” (needs tests). Re-organizes and fixes the handling of special cases for HTTP status code in the xhr transport
  • #8177 XHR transport now considers 304 Not Modified responses as 200 OK if no conditional request header was provided (as per the XMLHttpRequest specification)
  • #8193 Fixes abort in prefilter. No global event will be fired in that case even if the global option is set to true. Unit test added
  • #8198 Remove unnecessary “script.type = text/javascript;”
  • #8200 Unexpose $.support._scriptEval as it's not needed. Use a private var instead
  • #8209 Make sure that mousing over Chrome “internal div” doesn't trigger a mouseleave
  • #8219 Introduces the mimeType option to override content-type header in conversion (and in native xhr when possible). Adds companion overrideMimeType method on jqXHR object (it simply sets the option)
  • #8220 Remove backslashes from tag name filter
  • #8245 Ajax now ensures header names are capitalized so that non-compliant xhr implementations don't override them
  • #8250 ajax does not work in opera 10 widgets
  • #8277 Sets data to undefined rather than null when it is not provided in ajax helpers so that it won't revent data set in ajaxSettings from being used.
  • #8297 Make sure response headers with empty values are handled properly and do not prevent proper parsing of the entire response headers string.
  • #8353 Adds a catch block in resolveWith so that the finally block gets executed in IE7 and IE6.
  • #8365 Make sure that IE 9 still clones attributes.
Javascript 相关文章推荐
鼠标经过显示二级菜单js特效
Aug 13 Javascript
用jQuery toggleClass 实现鼠标移上变色
May 14 Javascript
jQuery实现表单步骤流程导航代码分享
Aug 28 Javascript
jQuery实现自定义右键菜单的树状菜单效果
Sep 02 Javascript
JavaScript鼠标特效大全
Sep 13 Javascript
js实现刷新页面后回到记录时滚动条的位置【两种方案可选】
Dec 12 Javascript
纯js的右下角弹窗实例
Mar 12 Javascript
微信小程序 slider的简单实例
Apr 19 Javascript
Vue.JS项目中5个经典Vuex插件
Nov 28 Javascript
vue项目引入Iconfont图标库的教程图解
Oct 24 Javascript
JavaScript实现简单的图片切换功能(实例代码)
Apr 10 Javascript
Node登录权限验证token验证实现的方法示例
May 25 Javascript
20款超赞的jQuery插件 Web开发人员必备
Feb 26 #Javascript
js对象的比较
Feb 26 #Javascript
基于jquery循环map功能的代码
Feb 26 #Javascript
textarea中的手动换行处理的jquery代码
Feb 26 #Javascript
JS 面向对象之神奇的prototype
Feb 26 #Javascript
js 创建书签小工具之理论
Feb 25 #Javascript
JavaScript ( (__ = !$ + $)[+$] + ({} + $)[_/_] +({} + $)[_/_] )
Feb 25 #Javascript
You might like
总集篇&特番节目先行播出!《SAO Alicization War of Underworld》第2季度TV动画4月25日放送!
2020/03/06 日漫
PHP 中执行系统外部命令
2006/10/09 PHP
如何使用脚本模仿登陆过程
2006/11/22 PHP
cmd下运行php脚本
2008/11/25 PHP
PHP中数组的分组排序实例
2014/06/01 PHP
PHP中加速、缓存扩展的区别和作用详解(eAccelerator、memcached、xcache、APC )
2016/07/09 PHP
php 删除指定文件夹的实例讲解
2017/07/25 PHP
dojo 之基础篇(二)之从服务器读取数据
2007/03/24 Javascript
深入认识javascript中的eval函数
2009/11/02 Javascript
jQuery 删除或是清空某个HTML元素示例
2014/08/04 Javascript
jQuery实现的一个tab切换效果内部还嵌有切换
2014/08/10 Javascript
JavaScript中使用Object.prototype.toString判断是否为数组
2015/04/01 Javascript
jquery实现点击弹出带标题栏的弹出层(从右上角飞入)效果
2015/09/19 Javascript
javascript事件处理模型实例说明
2016/05/31 Javascript
jQuery滚动监听实现商城楼梯式导航效果
2017/03/06 Javascript
js实现前端图片上传即时预览功能
2017/08/02 Javascript
Spring boot 和Vue开发中CORS跨域问题解决
2018/09/05 Javascript
java实现单链表增删改查的实例代码详解
2019/08/30 Javascript
Vue 数组和对象更新,但是页面没有刷新的解决方式
2019/11/09 Javascript
浅谈JavaScript 声明提升
2020/09/14 Javascript
vue 自定指令生成uuid滚动监听达到tab表格吸顶效果的代码
2020/09/16 Javascript
[02:29]完美世界高校联赛上海赛区回顾
2015/12/15 DOTA
[01:05]主宰至宝剑心之遗
2017/03/16 DOTA
python实现查询IP地址所在地
2015/03/29 Python
Pycharm学习教程(4) Python解释器的相关配置
2017/05/03 Python
Python实现统计文本文件字数的方法
2017/05/05 Python
python使用循环打印所有三位数水仙花数的实例
2018/11/13 Python
python如何解析配置文件并应用到项目中
2019/06/27 Python
django-orm F对象的使用 按照两个字段的和,乘积排序实例
2020/05/18 Python
使用python批量修改XML文件中图像的depth值
2020/07/22 Python
Python中读取文件名中的数字的实例详解
2020/12/25 Python
CSS3 box-sizing属性
2009/04/17 HTML / CSS
荷兰皇家航空公司中国官网:KLM中国
2017/12/13 全球购物
行政主管职责范本
2014/03/07 职场文书
开展批评与自我批评心得体会
2014/10/17 职场文书
使用pipenv管理python虚拟环境的全过程
2021/09/25 Python