# File lib/cgikit/command.rb, line 80
  def distinct_element( element, attrs )
    case element.name
    when 'a'
      @elements << HTMLLink.new(self, attrs, element.text)
    when 'img'
      @elements << HTMLImage.new(self, attrs)
    when 'frame'
      @elements << HTMLFrame.new(self, attrs)
    when 'form'
      @form = HTMLForm.new(self, attrs)
      @elements << @form
    when 'input'
      @elements << HTMLControl.control(self, attrs, @form)
    when 'textarea'
      textarea = HTMLTextArea.new(self, attrs, element.text)
      textarea.form = @form
      @form.controls << textarea
      @elements << textarea
    when 'select'
      @select = HTMLSelect.new(self, attrs)
      @select.form = @form
      @form.controls << @select
      @elements << @select
    when 'option'
      option = HTMLOption.new(self, attrs, element.texts[0].to_s)
      @select.options << option
      @elements << option
    end
  end