public function add($selector = null) { if (!$selector) { return $this; } $stack = array(); $this->elementsBackup = $this->elements; $found = phpQuery::pq($selector, $this->getDocumentID()); $this->merge($found->elements); return $this->newInstance(); }