In LocPathIterator#setCacheNodes, don't replace the current m_cachedNodes if
it is non-null.  This fixes a bug with the NodeIterator/NodeSet

In getDTMHandleFromNode, if a DTM has to be created, create
it from the ownerDocument instead of the node argument.  I think
this will avoid a lot of problems with node identity coming from
extensions and the XPath API.

git-svn-id: 13f79535-47bb-0310-9956-ffa450edef68
3 files changed