/** * Enter description here... * * @param string|PhpQueryObject * @return PhpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery */ 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(); }