code: function listToFragment(list) {
    var fragment = document.createDocumentFragment();
    for (var i = 0, l = list.length; i < l; i++) {
      // Use toFragment since this may be an array of text, a jQuery object of `<template>`s, etc.
      fragment.appendChild(toFragment(list[i]));
      if (l === list.length + 1) {
        // adjust for NodeLists which are live, they shrink as we pull nodes out of the DOM
        i--;
        l--;
      }
    }
    return fragment;
  }
docs: Converts an HTMLCollection, NodeList, jQuery object, or array into a document fragment.