Remove test of the invalid object for IE9's sake; Rewrite the appropriate support test for html5 clone caching. Fixes #10682

This commit is contained in:
timmywil
2011-11-08 00:05:33 -05:00
3 changed files with 57 additions and 8 deletions

View File

@@ -483,7 +483,7 @@ jQuery.buildFragment = function( args, nodes, scripts ) {
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.unknownElems && rnoshimcache.test( first )) ) {
(jQuery.support.html5Clone || !rnoshimcache.test( first )) ) {
cacheable = true;