/** * Insert the contents of the current DOMQuery after the nodes in the * destination DOMQuery object. * * @param DOMQuery $dest * Destination object where the current elements will be deposited. * @retval object DOMQuery * The present DOMQuery, unaltered. Only the destination object is altered. * @see after() * @see insertBefore() * @see append() * @throws QueryPath::Exception * Thrown if $data is an unsupported object type. */ public function insertAfter(DOMQuery $dest) { foreach ($this->matches as $m) { $dest->after($m); } return $this; }