rem: for(var x = this.start; x; x = XRai.nextElementTo(x,this.end,1)) { 
add: if (debug) XRai.debug("*** Adding in[side] elements for " + this.getPaths() + "\n"); for(var x = this.start; x; x = XRai.nextElementTo(x,this.end)) { if (!XRai.isInDocument(x,1)) continue; 
context:    this.validate = function() {      if (debug) XRai.debug("* Validating " + this.getPaths() + "\n");      this.validated = true;      // Update containers      if (debug) XRai.debug("Updating containers\n");      var lca = this.getLCA();//       XRai.addContained(this,lca);      // Create assessments for intersection      var range = this.getContainer();      if (range) {         if (debug) XRai.debug("** Adding assessments for intersection (" + XRai.getPath(range.start) + "-" + XRai.getPath(range.end) + ")\n");         for(var x = range.start; x; x = XRai.nextElementTo(x,range.end,1)) {            XRai.addPassage(x,this,1);         }      } else XRai.addPassage(lca,this,1);      for(var x = this.start; x; x = XRai.nextElementTo(x,this.end,1)) {         if (debug) XRai.debug(" [adding assessments below " + XRai.getPath(x) + "]\n");         if (!XRai.isInDocument(x,1)) continue;//          if (debug) XRai.debug("In " + XRai.getPath(x) + "\n");         for(var y = x; y && ((y == x) || XRai.isIn(y,x)); y = XRai.next(y,1)) {            if (debug) XRai.debug("  Element " + XRai.getPath(y) + " is in passage " + this.getPaths() + "\n");            if (!y.cAssessment) {               y.cAssessment = XRai.newAssessment(y,"0",false);            }            if (y.cAssessment.hasAttribute("type")  && (y.cAssessment.getAttribute("type") != "in"))               throw Error("The element assessment " + XRai.getPath(y) + " has already a type (" + y.cAssessment.getAttribute("type") + ")");            y.cAssessment.setAttribute("type","in");         }      }   }
meta: 8632	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8632/cd2cf370948170c5eff1bc7502a9d6cc67d4c140/article.js/buggy/trunk/js/article.js