rem: }catch(err){} 
add: } catch(err) {} 
context: function InsertNodeAtStartOfRange( newNode ){    //Range.prototype.insertNode = InsertNodeAtStartOfRange;    //Mozilla has not implemented this method yet.  This code will simulate the    //required functionality    try{        var test_INVALID_STATE_ERR = this.endContainer;        var test_INVALID_STATE_ERR = this.startContainer;    }catch(e){throw new Error("INVALID_STATE_ERR")}    var node=newNode;    //check for invalid node type    switch( node.nodeType ){    case Node.DOCUMENT_NODE:    case Node.ATTRIBUTE_NODE:    case Node.ENTITY_NODE:    case Node.NOTATION_NODE:        throw new Error("INVALID_NODE_TYPE_ERR")        break;    case Node.DOCUMENT_FRAGMENT_NODE:        var firstChild = node.firstChild;    }    if( this.startContainer.nodeType == Node.CDATA_SECTION_NODE ||            this.startContainer.nodeType == Node.TEXT_NODE){        //The start of the range is within a Text or CDATASection node.  The node        //must be split so that the new node can be inserted.        this.startContainer.parentNode.insertBefore(            node, this.startContainer.splitText( this.startOffset));    } else if( this.startOffset == this.startContainer.childNodes.length){        //find the insertion point in the DOM and insert the node.        //the insertion point is at the end of the startContainer node so just        //append the node to the startContainer node.        this.startContainer.appendChild( node );    } else {        //the insertion point is NOT at the end of the startContainer node.  Insert        //the node before the node referenced by the startOffset property        this.startContainer.insertBefore(            node, this.startContainer.childNodes.item(this.startOffset) );    }    if( node.nodeType == Node.DOCUMENT_FRAGMENT_NODE) node = firstChild;    try{        this.setStart( node, 0 );    }catch(err){}}
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