dragonworx/jsel — pull request #1 by tharrington1 (2014-05-13 18:42:36+00:00)
Title: Fixed a check that will fail if jsel is used to generate a DOM and then ...

...later jsel is loaded again into the node.js process's namespace but this time from a different location on the filesystem. When this happens the XNodeSet used to parse the DOM will not be the same as the XNodeSet being checked against during function evaluation. For example, in the case of Functions.count, the second argument to the instance_of call will resolve to the most recently created XNodeSet and not the original one used to parse the DOM. Thus the check o.constructor === c will incorrectly fail.