copy a html element attrs to other.