]> source.dussan.org Git - jquery.git/commitdiff
Correct oldIE-related comments, revert some workarounds. Close gh-1207.
authorMichał Gołębiowski <m.goleb@gmail.com>
Wed, 20 Mar 2013 00:45:19 +0000 (01:45 +0100)
committerDave Methvin <dave.methvin@gmail.com>
Thu, 4 Apr 2013 16:55:03 +0000 (12:55 -0400)
CONTRIBUTING.md
src/ajax.js
src/attributes.js
src/core.js
src/effects.js

index 6028db34d44301f47355a075e77fbd6700a6ceb7..e6ede8e109cc8dc34ea94ca67660dc8bfc2a3a44 100644 (file)
@@ -207,10 +207,12 @@ This will only run the "css" module tests. This will significantly speed up your
 **ALWAYS RUN THE FULL SUITE BEFORE COMMITTING AND PUSHING A PATCH!**
 
 
-### jQuery supports the following browsers:
+### jQuery 2.x supports the following browsers:
 
 * Chrome Current-1
 * Safari Current-1
 * Firefox Current-1
-* IE 6+
+* IE 9+
 * Opera Current-1
+
+jQuery 1.x additionally supports IE6+.
index e965a3e8a5362c4c9459f398e6dfe70c9a2b2415..62c3d8ae148201ab2dd63df51e653d3f3da34dad 100644 (file)
@@ -8,7 +8,7 @@ var
        ajax_rquery = /\?/,
        rhash = /#.*$/,
        rts = /([?&])_=[^&]*/,
-       rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
+       rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg,
        // #7653, #8125, #8152: local protocol detection
        rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
        rnoContent = /^(?:GET|HEAD)$/,
index 665e6ba9d3d64fee757de151bf9d006a85481237..f116f83964c22ad529fd4260d17853f7b02a2acc 100644 (file)
@@ -23,11 +23,8 @@ jQuery.fn.extend({
        removeProp: function( name ) {
                name = jQuery.propFix[ name ] || name;
                return this.each(function() {
-                       // try/catch handles cases where IE balks (such as removing a property on window)
-                       try {
-                               this[ name ] = undefined;
-                               delete this[ name ];
-                       } catch( e ) {}
+                       this[ name ] = undefined;
+                       delete this[ name ];
                });
        },
 
@@ -249,7 +246,7 @@ jQuery.extend({
                                for ( ; i < max; i++ ) {
                                        option = options[ i ];
 
-                                       // oldIE doesn't update selected after form reset (#2551)
+                                       // IE6-9 doesn't update selected after form reset (#2551)
                                        if ( ( option.selected || i === index ) &&
                                                        // Don't return options that are disabled or in a disabled optgroup
                                                        ( jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) &&
index 67fa24c77d0cc0eddc34ffbe06dbb1eb4dbbb944..9a288fa1b11511742ada646f0d94074e067ad223 100644 (file)
@@ -133,13 +133,7 @@ jQuery.fn = jQuery.prototype = {
                                        // Check parentNode to catch when Blackberry 4.6 returns
                                        // nodes that are no longer in the document #6963
                                        if ( elem && elem.parentNode ) {
-                                               // Handle the case where IE and Opera return items
-                                               // by name instead of ID
-                                               if ( elem.id !== match[2] ) {
-                                                       return rootjQuery.find( selector );
-                                               }
-
-                                               // Otherwise, we inject the element directly into the jQuery object
+                                               // Inject the element directly into the jQuery object
                                                this.length = 1;
                                                this[0] = elem;
                                        }
index 96370920b88fa21bd018f9aea295e7d3d72cb4eb..8a2f2a26ce6041d6b545569155e46fa8cc3e27e2 100644 (file)
@@ -279,7 +279,7 @@ function defaultPrefilter( elem, props, opts ) {
        // height/width overflow pass
        if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) {
                // Make sure that nothing sneaks out
-               // Record all 3 overflow attributes because IE does not
+               // Record all 3 overflow attributes because IE9-10 do not
                // change the overflow attribute when overflowX and
                // overflowY are set to the same value
                opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];