dist/tulipan.cjs.js
/**
 * Extract qualified content nodes from a node list.
 *
 * @param {NodeList} nodes
 * @return {DocumentFragment}
 */
Extract qualified content nodes from a node list.
Extract qualified content nodes from a node list .
function extractFragment(nodes, parent) {
  var frag = document.createDocumentFragment();
  nodes = toArray(nodes);
  for (var i = 0, l = nodes.length; i < l; i++) {
    var node = nodes[i];
    if (isTemplate(node) && !node.hasAttribute('tp-if') && !node.hasAttribute('tp-for')) {
      parent.removeChild(node);
      node = parseTemplate(node, true);
    }
    frag.appendChild(node);
  }
  return frag;
}
function extractFragment ( nodes , parent ) { var frag = document . createDocumentFragment ( ) ; nodes = toArray ( nodes ) ; for ( var i = 0 , l = nodes . length ; i < l ; i ++ ) { var node = nodes [ i ] ; if ( isTemplate ( node ) && ! node . hasAttribute ( 'tp-if' ) && ! node . hasAttribute ( 'tp-for' ) ) { parent . removeChild ( node ) ; node = parseTemplate ( node , true ) ; } frag . appendChild ( node ) ; } return frag ; }
Extract qualified content nodes from a node list.
Extract qualified content nodes from a node list .