Lines Matching refs:clone
379 var clone = null;
384 clone = doc.createElement(srcNode.nodeName.toLowerCase());
388 clone.setAttribute(srcAttr.nodeName, srcAttr.nodeValue);
394 clone.appendChild(cloneChild);
401 clone = doc.createTextNode(srcNode.nodeValue);
405 clone = doc.createCDATASection(srcNode.nodeValue);
409 clone = doc.createProcessingInstruction(srcNode.nodeValue);
413 clone = doc.createComment(srcNode.nodeValue);
416 return clone;
432 var clone = null;
434 clone = document.cloneNode(true);
437 if (clone == null) {
438 clone = document.implementation.createDocument(
446 if (clone.documentElement == null) {
447 clone.appendChild(clone.createElement(document.documentElement.nodeName));
452 clone.documentElement.setAttribute(srcAttr.nodeName, srcAttr.nodeValue);
458 var cloneNode = this.cloneNode(srcNode, clone);
459 clone.insertBefore(cloneNode, clone.documentElement);
465 var cloneNode = this.cloneNode(srcNode, clone);
466 clone.appendChild(cloneNode);
471 var cloneNode = this.cloneNode(srcNode, clone);
473 clone.documentElement.appendChild(cloneNode);
478 return clone;