rem: y.parentNode.replaceChild(x, y); /* _debug("***start***"); _debug("***x***"); _dump(x); _debug("***xNextSibling***"); _dump(xNextSibling); _debug("***xParent***"); _dump(xParent); _debug("***y***");_dump(y); _debug("***end***"); */ if(xNextSibling == null) xParent.appendChild(y); else xParent.insertBefore(y, xNextSibling); 
add: var yParent = y.parentNode;  xParent.insertBefore(y, xNextSibling); yParent.insertBefore(x, yNextSibling);  
context: _swapNodes = function (x, y) {  var xNextSibling = x.nextSibling;  var xParent = x.parentNode;  y.parentNode.replaceChild(x, y);/*  _debug("***start***");  _debug("***x***"); _dump(x);   _debug("***xNextSibling***"); _dump(xNextSibling);  _debug("***xParent***"); _dump(xParent);  _debug("***y***");_dump(y);  _debug("***end***");*/  if(xNextSibling == null)    xParent.appendChild(y);  else    xParent.insertBefore(y, xNextSibling);  return {}}
meta: 3248	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3248/9e5558d373bf99286aa1094d2a2c36e2a5bf84f7/jslib.js/clean/lib/js/jslib.js