aboutsummaryrefslogtreecommitdiffstats
path: root/src/manipulation.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-07-11 14:50:59 +0000
committerJohn Resig <jeresig@gmail.com>2009-07-11 14:50:59 +0000
commit0c4418bbc4022ed5cb746af364ff1c0d7c331209 (patch)
treef9ef0e07b3167ad4f294e5151367b47ce41b8e9a /src/manipulation.js
parent2a268f5f4b5b1d870d5af580de4c768e0121e5b5 (diff)
downloadjquery-0c4418bbc4022ed5cb746af364ff1c0d7c331209.tar.gz
jquery-0c4418bbc4022ed5cb746af364ff1c0d7c331209.zip
Limit domManip caching to strings < 512 characters long. Ticket #4883.
Diffstat (limited to 'src/manipulation.js')
-rw-r--r--src/manipulation.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index 62009be20..b026672df 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -140,7 +140,7 @@ jQuery.fn.extend({
var fragment, scripts, cacheable, cached, cacheresults, first;
if ( this[0] ) {
- if ( args.length === 1 && typeof args[0] === "string" ) {
+ if ( args.length === 1 && typeof args[0] === "string" && args[0].length < 512 ) {
cacheable = true;
cacheresults = jQuery.fragments[ args[0] ];
if ( cacheresults ) {