JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.js"></script>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/ui-lightness/jquery-ui.css">

JavaScript

var frag = document.createDocumentFragment();

var elem = document.createElement('span');

elem.appendChild(document.createTextNode('tester'));

frag.appendChild(elem);

$('body').append( 'passing document fragment matches: ' + $(frag).find('span').length + '<br><br>' ); 

$('body').append( 'passing childNodes matches: ' + $(frag.childNodes).filter('span').length );