rem: if (!(myNodeAttr)) { 
add: if (!(myNodeAttr)) { 
context: function BX_updateXML(){    var allDivs = document.getElementsByName("bitfluxspan");    BX_clean_nodelist(BX_xml);    BX_xml.getElementById = BX_getElementById;    BX_tmp_r1 = BX_xml.createRange();    BX_tmp_r2 = document.createRange();    for (var i = 0; i < allDivs.length; i ++)    {        if (allDivs[i].getAttribute("id"))        {            var myNodeAttr = BX_xml.getElementById(allDivs[i].getAttribute("id"));            //get all children of this <span> tag and add them to a new element with <formfieldid>            // later we replace that in the BX_xml.            if (!(myNodeAttr))            {                continue;            }            BX_tmp_r1.selectNodeContents(myNodeAttr);            BX_tmp_r1.extractContents();            BX_tmp_r2.selectNodeContents(document.getElementById(allDivs[i].getAttribute("id")));            if (BX_tmp_r2.toString().length > 0)            {                BX_tmp_r1.insertNode(BX_tmp_r2.cloneContents());            }            /**            //i'm not sure, for what this exactly was.... it works  with the code above...            for (j  = 0; j < document.getElementById(allDivs[i].id).childNodes.length; j++)            {            temp = document.getElementById(allDivs[i].id).childNodes[j].cloneNode(true);            // mmmh, works wirh NN6.2 and MOZ098. temp.BX_xml works only in MOZ098            formvalue += ser.serializeToString(document.getElementById(allDivs[i].id).childNodes[j]).replace(/a0:/gi,"").replace(/BX_xmlns:a0="http:\/\/www.w3.org\/1999\/xhtml"/g,"");            newElement.appendChild(temp);            }            BX_xml.getElementById(allDivs[i].id).replaceChild(newElement,myNodeAttr);            */        }    }    BX_tmp_r1.detach();    BX_tmp_r2.detach();}
meta: 791	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js