fixed insertBefore and replaceChild to handle gracefully the cases where a node is inserted before itself or is replaced by itself. It was confirmed by the W3C DOM WG that the DOM spec allows these operations. I also cleaned up a little internalInsertBefore and renamed the fields related to the cache of the NodeList to more meaningful names.
fixed insertBefore and replaceChild to handle gracefully the
cases where a node is inserted before itself or is replaced by itself.
It was confirmed by the W3C DOM WG that the DOM spec allows these operations.
I also cleaned up a little internalInsertBefore and renamed the fields
related to the cache of the NodeList to more meaningful names.


git-svn-id: 21df804813e9d3638e43477f308dd0be51e5f30f@316813 13f79535-47bb-0310-9956-ffa450edef68

ronsigal/xerces,RackerWilliams/xercesj,ronsigal/xerces,RackerWilliams/xercesj,RackerWilliams/xercesj,ronsigal/xerces,jimma/xerces,jimma/xerces,jimma/xerces