From: John Resig Date: Sun, 11 Jan 2009 21:22:37 +0000 (+0000) Subject: Made the case specific of the type attribute. X-Git-Tag: 1.3rc1~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fa615bedd47bd8a4b11e8490e26d2c89d1d86e2a;p=jquery.git Made the case specific of the type attribute. --- diff --git a/src/core.js b/src/core.js index 493a655cf..186a2161d 100644 --- a/src/core.js +++ b/src/core.js @@ -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 )