src/aria/utils/Dom.js
function (oldElt, newElt) {
            var parentNode = oldElt.parentNode;
            parentNode.insertBefore(newElt, oldElt);
            parentNode.removeChild(oldElt);
        }
function (oldElt, newElt) {
            var parentNode = oldElt.parentNode;
            parentNode.insertBefore(newElt, oldElt);
            parentNode.removeChild(oldElt);
        }
function ( oldElt , newElt ) { var parentNode = oldElt . parentNode ; parentNode . insertBefore ( newElt , oldElt ) ; parentNode . removeChild ( oldElt ) ; }
Simple utility method which replaces a dom element by another.
@param {HTMLElement} oldElt
@param {HTMLElement} newElt
Simple utility method which replaces a dom element by another .