DomSnapshot.restore
Rebuild the tree into doc (an empty document). It returns false if out of memory. The document uses the strings of the snapshot without copying them: the snapshot must outlive it (a static one always does).
Rebuild the tree into doc (an empty document). It returns false if out of memory. The document uses the strings of the snapshot without copying them: the snapshot must outlive it (a static one always does).