rem: var text = ''; for (var i = 0; i < element.childNodes.length; i++) { if (element.childNodes[i].nodeValue == null) {text += ' '} else {text += element.childNodes[i].nodeValue} } 
add: var text = this.recursiveElementText(element); 
context:   GetElementText: function (element) {    var text = '';    for (var i = 0; i < element.childNodes.length; i++) {      if (element.childNodes[i].nodeValue == null) {text += ' '}        else {text += element.childNodes[i].nodeValue}    }    if (text.search('&') >= 0) {      text = text.replace(/&lt;/g,'<');      text = text.replace(/&gt;/g,'>');      text = text.replace(/&quot;/g,'"');      text = text.replace(/&amp;/g,'&');    }    return text;  },
meta: 7708	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7708/5740c2a3f758850c299e710814f270a583ea85fa/jsMath.js/buggy/htdocs/jsMath/uncompressed/jsMath.js