mirror of
https://github.com/jquery/jquery.git
synced 2026-02-07 17:25:04 -05:00
Fixes jQuery.fragments cache and adds tests. Fixes #10682
This commit is contained in:
@@ -480,7 +480,7 @@ jQuery.buildFragment = function( args, nodes, scripts ) {
|
||||
// Lastly, IE6,7,8 will not correctly reuse cached fragments that were created from unknown elems #10501
|
||||
if ( args.length === 1 && typeof first === "string" && first.length < 512 && doc === document &&
|
||||
first.charAt(0) === "<" && !rnocache.test( first ) &&
|
||||
(jQuery.support.checkClone || !rchecked.test( first )) &&
|
||||
(jQuery.support.checkClone || !rchecked.test( first )) ||
|
||||
(!jQuery.support.unknownElems && rnoshimcache.test( first )) ) {
|
||||
|
||||
cacheable = true;
|
||||
|
||||
Reference in New Issue
Block a user