From 0c4418bbc4022ed5cb746af364ff1c0d7c331209 Mon Sep 17 00:00:00 2001 From: John Resig Date: Sat, 11 Jul 2009 14:50:59 +0000 Subject: [PATCH] Limit domManip caching to strings < 512 characters long. Ticket #4883. --- src/manipulation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manipulation.js b/src/manipulation.js index 62009be2..b026672d 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 ) {