src/util/xml-helpers.js
function(doc, selector, xml) {
        var target = module.exports.resolveParent(doc, selector);
        if (!target) return false;

        if (xml.oldAttrib) {
            target.attrib = _.extend({}, xml.oldAttrib);
        }

        return true;
    }
function(doc, selector, xml) {
        var target = module.exports.resolveParent(doc, selector);
        if (!target) return false;

        if (xml.oldAttrib) {
            target.attrib = _.extend({}, xml.oldAttrib);
        }

        return true;
    }
function ( doc , selector , xml ) { var target = module . exports . resolveParent ( doc , selector ) ; if ( ! target ) return false ; if ( xml . oldAttrib ) { target . attrib = _ . extend ( { } , xml . oldAttrib ) ; } return true ; }
restores attributes from doc at selector
restores attributes from doc at selector