X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=cc89fff70c36a93434abc646213203bbf3103e7b;hb=027668047a65837daef59efcc5f7042303dd71c3;hp=41b8201a4ff9564dd154e880ab5b973dce061ba7;hpb=2cefce05c8619b359accb78eb0de8e54962f5abf;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 41b8201..cc89fff 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -1472,7 +1472,7 @@ jQuery.extend({ [0,"",""]; // Go to html and back, then peel off extra wrappers - div.innerHTML = wrap[1] + s + wrap[2]; + div.innerHTML = wrap[1] + arg + wrap[2]; // Move to the right depth while ( wrap[0]-- ) @@ -1495,7 +1495,7 @@ jQuery.extend({ } - arg = div.childNodes; + arg = jQuery.makeArray( div.childNodes ); } if ( arg.length === 0 && !jQuery.nodeName(arg, "form") )