mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Limit domManip caching to strings < 512 characters long. Ticket #4883.
This commit is contained in:
parent
2a268f5f4b
commit
0c4418bbc4
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user