# File lib/openid/yadis/htmltokenizer.rb, line 225
  def initialize(text)
    super(text)
    if ?< != text[0] or ?> != text[-1]
      raise HTMLTokenizerError, "Text passed to HTMLComment.initialize is not a comment"
    end

    @attr_hash = Hash.new
    @raw = text

    tag_name = text.scan(/[\w:-]+/)[0]
    if tag_name.nil?
      raise HTMLTokenizerError, "Error, tag is nil: #{tag_name}"
    end

    if ?/ == text[1]
      # It's an end tag
      @end_tag = true
      @tag_name = '/' + tag_name.downcase
    else
      @end_tag = false
      @tag_name = tag_name.downcase
    end

    @hashed = false
  end