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

2020-05-22 17:06:55易采站长站整理

#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.