From: John Resig Date: Sun, 11 Jan 2009 21:22:37 +0000 (+0000) Subject: Made the case specific of the type attribute. X-Git-Url: http://git.asbjorn.biz/?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 493a655..186a216 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 )