Lines Matching refs:clone
387 var clone = null;
392 clone = doc.createElementNS(srcNode.namespaceURI, srcNode.nodeName);
396 clone.setAttributeNS(srcAttr.namespaceURI, srcAttr.nodeName, srcAttr.nodeValue);
402 clone.appendChild(cloneChild);
409 clone = doc.createTextNode(srcNode.nodeValue);
413 clone = doc.createCDATASection(srcNode.nodeValue);
417 clone = doc.createEntityReference(srcNode.nodeName);
421 clone = doc.createProcessingInstruction(srcNode.target, srcNode.data);
425 clone = doc.createComment(srcNode.nodeValue);
428 return clone;
444 var clone = null;
446 clone = document.cloneNode(true);
449 if (clone == null) {
450 clone = document.implementation.createDocument(
458 if (clone.documentElement == null) {
459 clone.appendChild(clone.createElementNS(
466 clone.documentElement.setAttributeNS(
473 var cloneNode = this.cloneNode(srcNode, clone);
474 clone.insertBefore(cloneNode, clone.documentElement);
480 var cloneNode = this.cloneNode(srcNode, clone);
481 clone.appendChild(cloneNode);
486 var cloneNode = this.cloneNode(srcNode, clone);
488 clone.documentElement.appendChild(cloneNode);
493 return clone;