rem: return element; 
add: return math; 
context:   EncloseMath: function (element) {    if (this.callback) {if (!this.callback()) {return null}}    var search = this.search;    var close = search.close;    if (search.cpos == close.length) {close = close.nextSibling}       else {close = close.splitText(search.cpos)}    if (!close) {close = jsMath.document.createTextNode("")}    if (element == search.close) {element = close}    var math = search.open.splitText(search.pos);    while (math.nextSibling && math.nextSibling != close) {      if (math.nextSibling.nodeValue) {math.nodeValue += math.nextSibling.nodeValue}      math.parentNode.removeChild(math.nextSibling);    }    var TeX = math.nodeValue.substr(search.olength,      math.nodeValue.length-search.olength-search.clength);    math.parentNode.removeChild(math);    math = this.createMathTag(search.type,TeX);    //    //  This is where older, buggy browsers can fail under unpredicatble     //  circumstances, so we trap errors and at least get to continue    //  with the rest of the math.  (## should add error message ##)    //    try {      if (close && close.parentNode) {        close.parentNode.insertBefore(math,close);      } else if (search.open.nextSibling) {        search.open.parentNode.insertBefore(math,search.open.nextSibling);      } else {        search.open.parentNode.appendChild(math);      }    } catch (err) {}    this.search = {}; this.pattern.lastIndex = 0;    return element;  },
meta: 7708	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7708/59a78057dfab4bb84a52cc8cb4ea97c85c0497fc/tex2math.js/buggy/htdocs/jsMath/plugins/tex2math.js