public function contents() { $stack = array(); foreach ($this->stack(1) as $el) { // FIXME (fixed) http://code.google.com/p/phpquery/issues/detail?id=56 // if (! isset($el->childNodes)) // continue; foreach ($el->childNodes as $node) { $stack[] = $node; } } return $this->newInstance($stack); }