refactor(dom) copyCurrent