rem: } else { 
add: } else {  
context: function BX_insertContent(content, doNoCollapse) {    /*    BX_selection.removeAllRanges();*/    try {        BX_range.deleteContents();    } catch(e) {}    ;    var StartContainer = BX_range.startContainer;    var StartPosition = BX_range.startOffset;    if (typeof(content) == "string") {        if (content.length == 1) {            content = document.createTextNode(content);        } else if (content.indexOf("<") >= 0) {            content = BX_parser.parseFromString("<?xml version='1.0'?><rooot>"+content+"</rooot>","text/xml");            content = content.childNodes[0];            BX_tmp_r1 = document.createRange();            BX_tmp_r1.selectNodeContents(content);            content = BX_tmp_r1.extractContents();        } else {            content = document.createTextNode(content);        }        //		BX_range.createContextualFragment(content);    }    var startOffBefore = BX_range.startOffset;    if (StartContainer.nodeType==StartContainer.TEXT_NODE && content.nodeType==content.TEXT_NODE) {        StartContainer.insertData(StartPosition, content.nodeValue);        if (startOffBefore == BX_range.startOffset) {            BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1);            BX_range.collapse(false);        }    } else // if (StartContainer.nodeType == StartContainer.TEXT_NODE)    {        var startOffBefore = BX_range.startOffset;        BX_range.insertNodeBX = InsertNodeAtStartOfRange;        content.normalize();        try {            BX_range.insertNodeBX(content);        } catch(e) {}        ;        if (startOffBefore == BX_range.startOffset) {            BX_range.setEnd(BX_range.endContainer ,BX_range.endOffset +1);            //	        BX_range.setEnd(EndContainer ,EndPosition +1);        }        if (!doNoCollapse) {            BX_range.collapse(false);        }    }    BX_selection.addRange(BX_range);    return content;}
meta: 791	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/bitfluxeditor_core.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js