rem: if (x.reallyContained == 2 && !toremove) { if (!x.cAssessment) { x.cAssessment = XRai.newAssessment(x,"0",false); 
add: if (x.reallyContained == 2 && !toremove) { if (!x.cAssessment) { x.cAssessment = XRai.newAssessment(x,"0",false); } x.cAssessment.setAttribute("type","container"); toremove = x.containers[0]; toadd = x.cAssessment; 
context: XRai.addContained = function(z, x, limit) {   var toremove = null;   var toadd = z;   if (debug) window.dump("\n");   if (!x)      if (z.passage) x = XRai.getCommonAncestor(z.passage.start,z.passage.end);      else x = XRai.parent(z.parentNode,1);      window.dump("===> " + XRai.getPath(x) + " " + (limit?XRai.getPath(limit):"") +"\n");   while (x) {      if (!x.containers) { x.containers = new Array(); x.reallyContained = 0; }      else if (toremove) XRai.removeFromArray(x.containers,toremove);      XRai.addToArray(x.containers,toadd);      if (debug) {         window.dump("Element " + XRai.getPath(x) + " has [" + x.containers.length + "] ref. to (remove="               +  (!toremove ? "null" : XRai.getPath(toremove.parentNode))               + ", add=" + XRai.getPath(toadd.parentNode) + "):\n");         for(var i = 0; i < x.containers.length; i++) {            window.dump("==> " + XRai.getPath(x.containers[i].parentNode) + "\n");         }      }      // Change only if (real) length is 2      if (!limit || XRai.isIn(x,limit)) x.reallyContained++;      if (x.reallyContained == 2 && !toremove) {         if (!x.cAssessment) {            x.cAssessment = XRai.newAssessment(x,"0",false);         }         x.cAssessment.setAttribute("type","container");         toremove = x.containers[0];         toadd = x.cAssessment;      }      x = XRai.parent(x,1);   }}
meta: 8632	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8632/118a48a7c56edb8af49d2c17b204d65bb2149adb/article.js/clean/trunk/js/article.js