rem: this.cache[this.cache.length] = new DocumentBuilderCacheEntry(sourceURL, MozLoad(sourceURL)); 
add: this.cache[this.cache.length] = new DocumentBuilderCacheEntry(sourceURL, MozXMLLoad(sourceURL)); 
context:   function MozXMLDocumentBuilder_load(sourceURL, willBeModified) {	for(i = 0; i < this.cache.length; i++) {		if(this.cache[i].url == sourceURL) {			var testdoc = this.cache[i].testdoc;			if(testdoc.documentElement.nodeName != "temp") {				//				//  if it will be modified, start loading its replacement				//				if(willBeModified) {					this.cache[i].testdoc = MozXMLLoad(sourceURL);				}				return testdoc;			}		}	}    doc = document.implementation.createDocument("","temp",null);    doc.load(sourceURL + ".xml");    for(var i = 0; i < 5; i++) {		alert("doc.documentElement is null " + (doc.documentElement == null).toString());		if(doc.documentElement != null) {			alert("docElement=" + doc.documentElement.nodeName);		}        if(doc.documentElement != null && doc.documentElement.nodeName != "temp") break;        alert("Load attempt " + i.toString() + ": Press OK continue.");    }        if(willBeModified) {		//		//   if it will be modified, get another copy started		//		this.cache[this.cache.length] = new DocumentBuilderCacheEntry(sourceURL, MozLoad(sourceURL));	}	//	//   if not going to be modified, then we can keep this around	//      for another iteration	else {		this.cache[this.cache.length] = new DocumentBuilderCacheEntry(sourceURL,doc);	}    return doc;  }
meta: 7959	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7959/2ca7e7289925e3eaf421921fc810a54e9eac468f/DOMTestCase.js/buggy/ecmascript/DOMTestCase.js