jindw/xmldom — pull request #8 by yaronn (2012-05-24 15:39:19+00:00)
Title: fix importNode

if you try to run the below code before this fix you will get an error Object # has no method 'cloneNode' at importNode (c:\Temp\node_modules\xmldom\dom.js:936:16)

use this code to reproduce:

var Dom = require('xmldom').DOMParser
var doc1 = new Dom().parseFromString("")
var doc2 = new Dom().parseFromString("

")
var n =doc1.importNode(doc2.documentElement, true)
doc1.documentElement.appendChild(n)
console.log(doc1.toString())