]> source.dussan.org Git - jquery.git/commitdiff
Made the case specific of the type attribute.
authorJohn Resig <jeresig@gmail.com>
Sun, 11 Jan 2009 21:22:37 +0000 (21:22 +0000)
committerJohn Resig <jeresig@gmail.com>
Sun, 11 Jan 2009 21:22:37 +0000 (21:22 +0000)
src/core.js

index 493a655cfbb7e0ae819906f72ef99381c26f83bf..186a2161dac74d166b3f013c914520880b9f9e43 100644 (file)
@@ -923,7 +923,7 @@ jQuery.extend({
 
                if ( fragment ) {
                        for ( var i = 0; ret[i]; i++ ) {
-                               if ( jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type === "text/javascript") ) {
+                               if ( jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
                                        scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
                                } else {
                                        if ( ret[i].nodeType === 1 )