docs: function createNodesFromMarkup(markup, handleScript) {
    var node = dummyNode;
    ("production" !== process.env.NODE_ENV ? invariant(!!dummyNode, 'createNodesFromMarkup dummy not initialized') : invariant(!!dummyNode));
    var nodeName = getNodeName(markup);
  
    var wrap = nodeName && getMarkupWrap(nodeName);
    if (wrap) {
      node.innerHTML = wrap[1] + markup + wrap[2];
  
      var wrapDepth = wrap[0];
      while (wrapDepth--) {
        node = node.lastChild;
      }
    } else {
      node.innerHTML = markup;
    }
  
    var scripts = node.getElementsByTagName('script');
    if (scripts.length) {
      ("production" !== process.env.NODE_ENV ? invariant(
        handleScript,
        'createNodesFromMarkup(...): Unexpected <script> element rendered.'
      ) : invariant(handleScript));
      createArrayFromMixed(scripts).forEach(handleScript);
    }
  
    var nodes = createArrayFromMixed(node.childNodes);
    while (node.lastChild) {
      node.removeChild(node.lastChild);
    }
    return nodes;
  }