From: Oleg Date: Wed, 19 Dec 2012 22:35:52 +0000 (+0400) Subject: Simplify execution of script element if it processed without src attribute X-Git-Tag: 2.0.0b1~59^2~33 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f07e6758ae42f8f73251be9b434aedfa4c42ec85;p=jquery.git Simplify execution of script element if it processed without src attribute --- diff --git a/src/manipulation.js b/src/manipulation.js index f7d0f81f7..af2d8b8a6 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -330,7 +330,7 @@ jQuery.fn.extend({ "throws": true }); } else { - jQuery.globalEval( ( node.text || node.textContent || node.innerHTML || "" ).replace( rcleanScript, "" ) ); + jQuery.globalEval( node.textContent.replace( rcleanScript, "" ) ); } } }