1.0.1 • Published 9 years ago

dom-move v1.0.1

Weekly downloads
7
License
-
Repository
github
Last release
9 years ago

dom-move

Moves child elements from a DOM node to another dom node.

usage

move(source, destination);

All the child nodes of source will be removed, and appended in destination. The destination node is returned so you can do:

var content = move(source, document.createElement('div'));

If the second parameter is ommited, a document fragment is created:

var fragment = move(source);