code: private function collectSelectOptions($node)
      {
          $options = array();
          if ($node->name === 'option') {
              $options[] = $this->tags()->createTag($node->name, $this->attributes($node))
                                        ->addContent($this->innerHtml($node));
          }
          if ($node->hasChildren()) {
              foreach ($node->child as $child) {
                  $options = array_merge($options, $this->collectSelectOptions($child));
              }
          }
  
          return $options;
      }
docs: Parses the options from inside an XML select node.
  
  @param object $node      Tidy XML node.
  
  @return array            List of SimpleTag options.