]> source.dussan.org Git - jquery.git/commitdiff
Simplify execution of script element if it processed without src attribute
authorOleg <markelog@gmail.com>
Wed, 19 Dec 2012 22:35:52 +0000 (02:35 +0400)
committerOleg <markelog@gmail.com>
Sun, 23 Dec 2012 23:04:08 +0000 (03:04 +0400)
src/manipulation.js

index f7d0f81f7c55ed8f1866d6e443eb4d7261381ea6..af2d8b8a61d1206a68778b31cdd365b0d4dfdc12 100644 (file)
@@ -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, "" ) );
                                                        }
                                                }
                                        }