Lines Matching full:clone
404 var clone = null;
409 clone = doc.createElementNS(srcNode.namespaceURI, srcNode.nodeName);
413 clone.setAttributeNS(srcAttr.namespaceURI, srcAttr.nodeName, srcAttr.nodeValue);
419 clone.appendChild(cloneChild);
426 clone = doc.createTextNode(srcNode.nodeValue);
430 clone = doc.createCDATASection(srcNode.nodeValue);
434 clone = doc.createEntityReference(srcNode.nodeName);
438 clone = doc.createProcessingInstruction(srcNode.target, srcNode.data);
442 clone = doc.createComment(srcNode.nodeValue);
445 return clone;
461 var clone = null;
463 clone = document.cloneNode(true);
466 if (clone == null) {
467 clone = document.implementation.createDocument(
475 if (clone.documentElement == null) {
476 clone.appendChild(clone.createElementNS(
483 clone.documentElement.setAttributeNS(
490 var cloneNode = this.cloneNode(srcNode, clone);
491 clone.insertBefore(cloneNode, clone.documentElement);
497 var cloneNode = this.cloneNode(srcNode, clone);
498 clone.appendChild(cloneNode);
503 var cloneNode = this.cloneNode(srcNode, clone);
505 clone.documentElement.appendChild(cloneNode);
510 return clone;