# File lib/rubyful_soup.rb, line 620
  def unknown_endtag(name)
    #Ignore tag_end calls for self-closing tags; they were
    #closed in the tag_start call.
    #TODO: still neccessary?
    #puts "Ending tag #{name}"
    return if @@self_closing_tags.has_key?(name)

    if not @quote_stack.empty? and @quote_stack[-1] != name
      #This is not a real end tag.
      #puts "</#{name}> is not real!"
      handle_data('</#{name}>')
      return
    end   

    return unless !@parse_only_these or @tag_stack.size > 1 or @parse_only_these.member?(name)

    end_text
    pop_to_tag(name)
    @quote_stack.pop if not @quote_stack.empty? and @quote_stack[-1] == name
  end