js/tinymce/tinymce.jquery.js
function (original, tag) {
      var nu = Element.fromTag(tag);

      var attributes = Attr.clone(original);
      Attr.setAll(nu, attributes);

      return nu;
    }
function (original, tag) {
      var nu = Element.fromTag(tag);

      var attributes = Attr.clone(original);
      Attr.setAll(nu, attributes);

      return nu;
    }
function ( original , tag ) { var nu = Element . fromTag ( tag ) ; var attributes = Attr . clone ( original ) ; Attr . setAll ( nu , attributes ) ; return nu ; }
Shallow clone, with a new tag
Shallow clone with a new tag