From f07e6758ae42f8f73251be9b434aedfa4c42ec85 Mon Sep 17 00:00:00 2001 From: Oleg Date: Thu, 20 Dec 2012 02:35:52 +0400 Subject: [PATCH] Simplify execution of script element if it processed without src attribute --- src/manipulation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manipulation.js b/src/manipulation.js index f7d0f81f7c..af2d8b8a61 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, "" ) ); } } }