lib/dom.js
function(el, sub) {
    sub = normalize(sub);

    DOM.removeAllListeners(el);
    DOM.clearData(el);
    DOM.clean(el);

    //el.parentNode.replaceChild(sub, el);
    el.parentNode.insertBefore(sub, el);
    el.parentNode.removeChild(el);

    return sub; 
  }
function(el, sub) {
    sub = normalize(sub);

    DOM.removeAllListeners(el);
    DOM.clearData(el);
    DOM.clean(el);

    //el.parentNode.replaceChild(sub, el);
    el.parentNode.insertBefore(sub, el);
    el.parentNode.removeChild(el);

    return sub; 
  }
function ( el , sub ) { sub = normalize ( sub ) ; DOM . removeAllListeners ( el ) ; DOM . clearData ( el ) ; DOM . clean ( el ) ; //el.parentNode.replaceChild(sub, el); el . parentNode . insertBefore ( sub , el ) ; el . parentNode . removeChild ( el ) ; return sub ; }
"replace this with that"
replace this with that